misd-service-development/drupal-feature-questions-and-answers — pull request #4 by thewilkybarkid (2014-02-12 10:00:02+00:00)
Title: Wait for the DOM to be ready

The Cambridge theme puts JavaScript at the bottom of the page so the content is ready when the Feature's JS fires, but if the feature is used with a different theme that puts JS in the `

` the content isn't available when the JS fires, leading to nothing happening. This makes sure that it's not immediately invoked.