Portal Home > Knowledgebase > Articles Database > Help preload script


Help preload script




Posted by bambinou, 01-26-2012, 10:58 AM
Hello, I have a website with widgets, when they load, it takes ages. I have emailed the widget maker and here is their reply, but I do not understand exactly what they mean: "We build each customer's Web Components each day on demand, and then the result is cached for 24 hours. Thus there is some latency each day the first time they're loaded. We recommend writing a scheduled job that pre-loads any pages with Web Components on them at, say, 1AM your time (or 1AM in the timezone of your sites' users)." Any idea what he means for writing a scheduled job that preloads any pages with web components? Do you have a example of such script please? I have never seen that. I use an apache server. Thank you, Ben

Posted by ZCCool4718, 01-26-2012, 02:43 PM
Yes this, they are talking about putting a script with in a cron job and set it to run every night. If you get X page from X host, then you write a scrip that gets x page from x host and setup a cron job for x time to run. Getting the page for you.

Posted by bambinou, 01-26-2012, 04:34 PM
Hi ZCCool4718, Thank you for the reply, I still do not understand the principal of getting the pages, do you mean cache the info on the pages? Is there any free scripts that can do this please? I do not use a CMS, my site is just pure html. Thank you, Ben

Posted by Jack Sparrow, 01-27-2012, 09:06 AM
if you like to cross over the cached page from browser try to use random numbers after the page link , most of browsers cache the objects , pages etc , you need to refresh it manual or if you are a program you need to add random timeline into cached object

Posted by hodgeemory, 01-28-2012, 03:04 AM
Obviously smaller files would help but I was wondering if there is a way to write a body onload preload script that would start downloading the videos.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read