Skip to main content

Benjamin Sterling

Member since Jul 28, 2011

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 »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel