Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Suckerfish & .js delay with IE - preload external .js?

Reply
Thread Tools

Suckerfish & .js delay with IE - preload external .js?

 
 
Victoria Clare
Guest
Posts: n/a
 
      08-10-2004

Using the revised suckerfish dropdown javascript from

http://www.htmldog.com/articles/suckerfish/dropdowns/

I find that my dropdowns don't drop first time in IE.


This seems to be because I moved the javascript to an external file. The
rest of the page and all included files load before the script is ready
to play.

The load order looks like:
1) page content
2) images early in code
3) css
4) images lower down in code
5) and only when everything else is done - external javascript


Although filesizes aren't too huge (40Kb including css, images and text)
the load delay of the dropdowns is long enough that on a dialup or ISDN
connection (and with an impatient turn of mind) they are noticeably 'not
working' the first time you mouse over (another mouseover, or let the
page load fully, and it works)

The external .js link is right at the top of the html file, and does not
use the 'delay' attribute.

Is it possible to tell IE to load the external js before the images? Or
should I get a life and just bung the js back into the page?

Am I on the wrong track altogether ?

Victoria




 
Reply With Quote
 
 
 
 
Peter Mount
Guest
Posts: n/a
 
      08-16-2004
Hi

How long does the page take to load? I would stick to having an external
javascript file as that is the most efficient way to do it.

If anything I'd be looking at the sizes of the images to see how they
are slowing down the page loading. I read somewhere about a trick with
preloading images on the home page. The idea is to put them way down on
the page, size them in the html down to 1px by 1px (so they are only a
dot). That way when the page loads the image is cached in the client
computer and when the page with the "full size" version of the picture
is loaded it doesn't take too long to load because it's already been
cached. I haven't tried it myself so I don't know how well it works. I
think it might have been a technique described by "Robin Williams"
author of books like "The Non-Designer's Web Book".

Have a good day

Peter Mount


Victoria Clare wrote:

> Using the revised suckerfish dropdown javascript from
>
> http://www.htmldog.com/articles/suckerfish/dropdowns/
>
> I find that my dropdowns don't drop first time in IE.
>
>
> This seems to be because I moved the javascript to an external file. The
> rest of the page and all included files load before the script is ready
> to play.
>
> The load order looks like:
> 1) page content
> 2) images early in code
> 3) css
> 4) images lower down in code
> 5) and only when everything else is done - external javascript
>
>
> Although filesizes aren't too huge (40Kb including css, images and text)
> the load delay of the dropdowns is long enough that on a dialup or ISDN
> connection (and with an impatient turn of mind) they are noticeably 'not
> working' the first time you mouse over (another mouseover, or let the
> page load fully, and it works)
>
> The external .js link is right at the top of the html file, and does not
> use the 'delay' attribute.
>
> Is it possible to tell IE to load the external js before the images? Or
> should I get a life and just bung the js back into the page?
>
> Am I on the wrong track altogether ?
>
> Victoria
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Son of Suckerfish Chris HTML 2 07-16-2006 08:08 AM
Suckerfish CSS drop-down menu problem (major IE inconsistency!) Neo Geshel HTML 81 07-10-2006 02:34 AM
suckerfish elastic width thing the idiot HTML 3 09-22-2005 01:11 PM
Values to change in suckerfish menu Richard HTML 10 03-04-2005 02:59 PM
Schizophrenic Internet Explorer - Suckerfish Drop-downs Neo Geshel HTML 6 10-24-2004 10:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57