PDA

View Full Version : Preload



CreatorMaster
09-22-2003, 10:15 PM
How can I do a MS Fronpage 2002 preload? Does it do it automatically? or what?

MandyJay
09-22-2003, 10:44 PM
Hi what are you wanting to preload??
MJ
:furball:

CreatorMaster
09-23-2003, 07:53 AM
Images

CreatorMaster
09-23-2003, 07:54 AM
I saw this guys website, and the source was like

function MSFP_preload()

or something like that, but how can you do that or preload a page?

MandyJay
09-23-2003, 08:06 AM
Hi,
It depends what you are doing with the images. If they are for a mouse over effect, then you can find mouseover scripts with preload on a variety of the javascript sites - do a google search for mouse over with preload. But I seem to remember a previous post where you actually gave a preload script to a forum member .... do a search on this forum for "preload". You cant preload a page .... the idea of preloading is to load into someones cache images that will be required later, i.e. mouse over images, so when moused over the images appear straight away rather than being loaded at that point.
MJ
:furball:

MandyJay
09-23-2003, 08:08 AM
Oh - just a thought. Take into account file sizes of images to be preloaded. I helped out on a site once where the guy wanted a ton of images preloaded ...... for this huge mouse over menu ... the end result was, viewers were chomping at the bit wanting to use the menu .. but had to wait for ALL the images to preload ..... instead of waiting just few seconds for each link ... which then would have been cached anyway ..... only my personal opinion, but preloading of images has it pros and cons.
MJ

CreatorMaster
09-23-2003, 08:35 AM
Yeah I know how to preload with javascript, but I was just wondering how I could do it with frontpage. For instance, Dreamweaver has a preloader that is something like automatic. Does frontpage have something like that?

Example:


function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


I am just trying to find a way to preload with frontpage, that way it calls it faster like this page here: mjmfoundation.org

after you visit that page, it is alwayse loading fast, but I don't know what that script does :)

MandyJay
09-23-2003, 08:43 AM
No, FP doesnt have an automatic preloader. But any page will load faster on second visit (unless you have your settings to clear out your cache) ........ you dont need a preloader for that. When you visit a web page, it is sort of "stored" on HD so when you visit that page again it loads quicker .... that code you quote from dreamweaver is for a mouse over image - and you already have one that does that.
MJ
:furball: