Skip to main content

Jens Roland

Member since Jul 26, 2012

Recent Blog Comments By Jens Roland

  • Creating A Lazy Loading Utility Module For RequireJS

    Posted on Jul 26, 2012 at 10:38 AM

    @Ben, Sure, that makes sense. In my own framework, I use a slightly different approach; I extend* both define() and require() but keeping the method signatures intact. Then, by defining a magic init() function in any module, I get an initializer function which is invoked a... read more »

  • Creating A Lazy Loading Utility Module For RequireJS

    Posted on Jul 26, 2012 at 6:51 AM

    Perhaps I am missing something subtle here, but doesn't RequireJS handle this state internally? Admittedly, I use curl.js instead of RequireJS so I wouldn't know, but it seems unlikely that a second call to require() would re-fetch / re-initialize the previously loaded module. I know for a fact that... 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