Published at: 11:11 pm - Saturday November 28 2009
This is a quickie how-to post to help address a couple little gotchas you may run into when implementing LABjs onto your site.
Consider standard page code like this:
<script src=”framework.js”></script>
<script src=”myscript.js”></script>
<script>
myscript.init();
</script>
<script>
framework.init();
framework.doSomething();
</script>
In this example, “myscript.init” is a function that is defined in “myscript.js”, and “framework.init” and “framework.doSomething” are both defined inside [...]
Published at: 11:11 pm - Friday November 27 2009
By far the most prevalent question circulating right now in the wake of LABjs‘ initial public launch (IPL, I guess!?) is the understandable: “Why do I need a loader like LABjs for multiple files when I can just concat everything into one file?”
Fair enough, this is an important question to address. You shouldn’t just take [...]
Published at: 02:11 am - Wednesday November 25 2009
What, you mean to tell me you’re not already loading your scripts with the new hot thing, LABjs?
Just kidding, you’re probably just now starting to hear about it. But let me tell you, it is the next big thing. I mean, when was the last time someone found a way to completely revamp the plain [...]
Published at: 10:11 am - Saturday November 21 2009
For those of you who are familiar with JavaScript libraries, you are probably at least a little bit aware that there is an “event” that occurs during the loading of a page which abstractly represents the point in time in which the browser has fully processed the structure (aka, the “DOM”) of the HTML document [...]
Published at: 12:11 pm - Wednesday November 18 2009
There’s been some buzz lately about a proposal for a technique of UI delivery optimization called Resource Packaging. Steve Souders weighed in on the proposal with resounding support.
Essentially, the idea is that web developers could proactively create .ZIP files of various page resources (images, CSS, JS, etc), and include in their page a special <link> [...]
Published at: 12:11 am - Tuesday November 17 2009
I recently gave a talk about JavaScript Loading at JSConf.EU in Berlin. Video/audio of the talk will be made available online eventually, and I will link to it here once that happens. But, in fact, I will be re-presenting this same talk at the November meeting of Austin.Javascript (@AustinJS), on Tues Nov 17th, at 7:30pm. [...]