Benjamin Sterling
Member since Jul 28, 2011
- Profile: /members/8696-benjamin-sterling.htm
- URL: http://benjaminsterling.com
- Comments: 3
Recent Blog Comments By Benjamin Sterling
-
Using The LAB.js Script Loader With jQuery's DOM-Ready Event
Posted on Jul 29, 2011 at 10:27 AM
However, if you could somehow check for the existence of checkboxes without needing to use jQuery, then your .script(fn) call could have been not-nested and directly off the main chain, which would have the slight benefit of letting checkboxes.js load in parallel with the rest of the chain. @kyle:... read more »
-
Using The LAB.js Script Loader With jQuery's DOM-Ready Event
Posted on Jul 29, 2011 at 9:55 AM
@Andrea I think we are saying the same thing, there reasoning behind the: var checkboxes = jQuery( 'input[type=checkbox]' ); queue.script( function(){ if( checkboxes.size() ){ return 'jquery.ui.checkbox.js'; } } ) Is that I don't want the check box code to load if there are not che... read more »
-
Using The LAB.js Script Loader With jQuery's DOM-Ready Event
Posted on Jul 28, 2011 at 10:56 AM
Once again another great post on LABjs. I am in the process of doing a big project where we are using LABjs and doing more or less what you have posted. In my code we actually need to load other scripts based on what DOM nodes are available. So, if we go off your init function we are doing... read more »