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.
|
|
|
|
|
![]() |
||
Load Last
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
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. |
|
|
|
||||
|
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)
|
|
|||
|
Re: Load Last
that seems to work fine for explorer, but not firefox. Any other suggestions?
|
|
||||
|
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)
|
|
|||
|
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. |
|
||||
|
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)
|
![]() |
| Thread Tools | |
|
|
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 |