jQuery UI Demos Page Needs $(document).ready?

jQuery UI Demos Page Needs $(document).ready?

When visiting several of the jQuery UI demos this morning, I noticed that the initial demo did not start. I experimented by adding a $(document).ready block around the initial UI script, which seemed to clear the problem.

I found this first on the Dialog demo page, where the "default functionality" dialog was displayed as straight text on the page rather than popping up as a dialog.