This project aims at support for LABjs in Drupal. LABjs is a JavaScript loader, used by Twitter, Vimeo, examiner.com... which loads (and executes) all scripts in parallel as fast as the browser will allow.

Special thanks to Kyle Simpson, author of LABjs, who helps me to solve many technical problems.

Features

Once installed, this module looks for all your JavaScript and LABjsify them automatically. This make all JavaScript are loaded in parallel as maximum as browser supports. The other advantage is that script loading does not block page render.

Module developers can indicate which code should not be labjsified.

Currently there is an issue to get LABjs in core in D8: #1033392: Script loader support in core (LABjs etc.)

Install

Just download and enable the module.

Compatibility

If you are using Google AdManager, please use lazy mode (late loading).

To disable LABjs in certain pages, call labjs_suppress(TRUE) in those page. Useful for admin pages for example.

LABjs requires PHP5.

Alternatives

There are more than one script loader. If you prefer HeadJS over LABjs, check this one. However, in long term, I think there will be a merge.

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.3 tar.gz (25.96 KB) | zip (28.65 KB) 2012-Feb-11 Notes
6.x-1.3 tar.gz (18.22 KB) | zip (20.64 KB) 2012-Feb-11 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (25.96 KB) | zip (28.66 KB) 2012-Feb-11 Notes
6.x-1.x-dev tar.gz (18.22 KB) | zip (20.64 KB) 2012-Jan-27 Notes

Project Information


Maintainers for LABjs

  • jcisio - 70 commits
    last: 1 week ago, first: 1 year ago

Issues for LABjs

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 18 Jan 11
nobody click here