backbone-directory icon indicating copy to clipboard operation
backbone-directory copied to clipboard

[jquerymobile] why document.ready event

Open marceloverdijk opened this issue 12 years ago • 0 comments

In the jquerymobile implementation the app is bootstrapped in main.js using $(document).ready(function () { .. }

However the JQM docs state clearly to not use $(document).ready() but use $(document).bind('pageinit') instead.

Is there any (good) reason why you are using $(document).ready()?

marceloverdijk avatar May 31 '12 12:05 marceloverdijk