Load Last

This is a discussion on "Load Last" within the JavaScript Forum section. This forum, and the thread "Load Last are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 20th, 2007, 18:52
New Member
Join Date: Sep 2007
Location: PA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Load Last

Hi,

I am calling a remote javascript to display a poll. I there a way to get it to load after everything else on the page?

<script language="javascript" src="http://www.polldaddy.com/p/xxxxx.js" type="text/javascript"> </script>

I found a couple of options for loading other elements last, but couldn't get anything to work for me.
Reply With Quote

  #2 (permalink)  
Old Sep 20th, 2007, 19:26
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Load Last

<script language="javascript" src="http://www.polldaddy.com/p/xxxxx.js" type="text/javascript" defer> </script>

Adding defer to the script call will tell the browser you want it loaded after the HTML has rendered.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #3 (permalink)  
Old Sep 20th, 2007, 19:35
New Member
Join Date: Sep 2007
Location: PA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Load Last

that seems to work fine for explorer, but not firefox. Any other suggestions?
Reply With Quote
  #4 (permalink)  
Old Sep 20th, 2007, 19:58
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Load Last

What does it do if it doesn't load last?

Are you able to put it right at the end of the document?
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #5 (permalink)  
Old Sep 20th, 2007, 20:01
New Member
Join Date: Sep 2007
Location: PA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Load Last

The site that hosts the script has been down all day, so when it tries to load the script it just gets stuck with only part of the page loaded.

It needs to be in a certain spot on the page. If I could somehow list it last, but have it show up in a certain spot it would work.
Reply With Quote
  #6 (permalink)  
Old Sep 20th, 2007, 20:07
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Load Last

Unless you could actually edit what the script is doing then I can't think of anyway you could load it last.

You could try putting the script in absolutely positioned div -- right at the bottom of the page..

Might now be too fluid though.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Div to show on load pa007 JavaScript Forum 1 Aug 25th, 2007 17:15
load commands acrikey Flash & Multimedia Forum 11 Aug 17th, 2007 08:13
Load time acrikey Flash & Multimedia Forum 3 Jul 23rd, 2007 16:54
FLV load problem oguzak Flash & Multimedia Forum 1 Jul 5th, 2007 15:05
load css to flash for xml Ozeona Flash & Multimedia Forum 0 Sep 27th, 2005 00:38


All times are GMT. The time now is 19:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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