What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » better solution for window.scrollTo(x,y), onload is too slow.

better solution for window.scrollTo(x,y), onload is too slow.
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: RE: better solution for window.scrollTo(x,y), onload is too slow.
quote:
Originally posted by Nathan
Use jquery, and there is the document.ready function, which executes whatever is in it as soon as the headers are requested.

It executes on DOMContentLoaded i.e., when the page's source code has been downloaded and the DOM can be manipulated - meaning images may not be loaded yet.

As far as I'm aware window.onload and co only execute once images have been loaded too.

http://docs.jquery.com/Events/ready

Edit: oh, and it's $.ready.

This post was edited on 09-14-2008 at 11:48 AM by segosa.
The previous sentence is false. The following sentence is true.
09-14-2008 11:47 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
better solution for window.scrollTo(x,y), onload is too slow. - by .Roy on 09-14-2008 at 06:55 AM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by NanaFreak on 09-14-2008 at 07:17 AM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by Felu on 09-14-2008 at 07:40 AM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by segosa on 09-14-2008 at 10:46 AM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by Nathan on 09-14-2008 at 11:41 AM
RE: RE: better solution for window.scrollTo(x,y), onload is too slow. - by segosa on 09-14-2008 at 11:47 AM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by Felu on 09-14-2008 at 11:57 AM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by .Roy on 09-14-2008 at 12:54 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by Felu on 09-14-2008 at 12:56 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by .Roy on 09-14-2008 at 01:02 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by segosa on 09-14-2008 at 02:42 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by ShawnZ on 09-14-2008 at 02:52 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by .Roy on 09-14-2008 at 05:01 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by ShawnZ on 09-14-2008 at 05:16 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by .Roy on 09-14-2008 at 05:24 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by ShawnZ on 09-14-2008 at 05:33 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by .Roy on 09-14-2008 at 09:04 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by ShawnZ on 09-14-2008 at 09:05 PM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by .Roy on 09-15-2008 at 07:48 AM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by segosa on 09-15-2008 at 08:21 AM
RE: better solution for window.scrollTo(x,y), onload is too slow. - by .Roy on 09-15-2008 at 10:50 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On