Jens Roland
Member since Jul 26, 2012
- Profile: /members/10155-jens-roland.htm
- URL: http://jensroland.com
- Comments: 2
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 »