Top "Document-ready" questions

Use this tag for questions about JavaScript functions that run after the page is loaded.

jQuery document.ready() doesn't work with Require.js

I am calling Require.js from right before the closing body tag: <script data-main="assets/scripts/src/main.js" …

javascript jquery requirejs document-ready domready
jQuery: $(document).ready() too slow in IE

What would be the preferred way of hiding an element before the page is rendered? $(document).ready() works just fine …

jquery internet-explorer connection document-ready
Is inline/block Javascript executed before document-ready?

Assuming one has inline Javascript code in a HTML document (the body for example), is this piece of Javascript always …

javascript jquery html document-ready
jQuery multiple document ready queue order

I know calls to $(function(){ }) in jQuery are executed in the order that they are defined, but I'm wondering if …

jquery domready document-ready
Passing parameters into a closure for setTimeout

I've run into an issue where my app lives in an iframe and it's being called from an external domain. …

javascript jquery internet-explorer-9 closures document-ready
How to detect all imges loading finished in AngularJS

I want to use ng-repeat to show more then 100 images in a page. Those images are taking significant time in …

angularjs loading document-ready
Make sure my .JS file loads every time before others

I have a website where I don't have access to the source but I can manipulate it using Javascript. I …

javascript jquery html server-side document-ready
What's the right way to do $(document).ready in jQuery Mobile?

Suppose I want to run some code once jQuery Mobile has finished rendering the UI. The mobileinit event doesn't work …

jquery jquery-mobile document-ready
How can I use yepnope.js with $(document).ready() effectively?

I have been implementing the yepnope script loader as part of the modernizr.js library. I have successfully got jQuery …

javascript jquery document-ready yepnope asynchronous-loader
Angular and jQuery ng-include with document.ready not working

I am trying to load a component which is placed in a separate html using HMTL. The problem is that …

javascript jquery angularjs document-ready angularjs-ng-include