What are the pitfalls of executing jQuery without $(document).ready();?

jquery

Solution

Your jQuery selectors will randomly miss any elements because it is not loaded yet (by the browser).

Problem

Self-explanatory, I hope.

Original source