asynchronous-loader

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

守給你的承諾、 提交于 2019-11-29 21:53:52
I have been implementing the yepnope script loader as part of the modernizr.js library. I have successfully got jQuery to load and jQuery dependent scripts afterwards. I am new to asynchronous loading of resources, so it's a bit new to me. I have been searching around, but haven't had much luck with the following. My question is what are your opinions on how to effectively replace the functionality of $(document).ready() when working with the yepnope.js framework. My theory was to create a appropriately named function in my base library and then set that variable on my pages to an anonymous

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

久未见 提交于 2019-11-28 17:48:57
问题 I have been implementing the yepnope script loader as part of the modernizr.js library. I have successfully got jQuery to load and jQuery dependent scripts afterwards. I am new to asynchronous loading of resources, so it's a bit new to me. I have been searching around, but haven't had much luck with the following. My question is what are your opinions on how to effectively replace the functionality of $(document).ready() when working with the yepnope.js framework. My theory was to create a