Use this for general web page loading questions (HTML, PHP, ASP, etc).
Questions tagged [pageload]
946 questions
2395
votes
38 answers
$(document).ready equivalent without jQuery
I have a script that uses $(document).ready, but it doesn't use anything else from jQuery. I'd like to lighten it up by removing the jQuery dependency.
How can I implement my own $(document).ready functionality without using jQuery? I know that …

FlySwat
- 172,459
- 74
- 246
- 311
1063
votes
25 answers
How to make JavaScript execute after page load?
I'm executing an external script, using a