yepnope/modernizr.load could be used to load all scripts and then we wouldn't have to use something like labjs in addition to modernizr.

It could be configured as a submodule and much of the code from the labjs module could probably be used.

yepnope may not have all the features of labjs or requirejs, but it will probably do just fine for a majority of users.

Comments

rupl’s picture

Hi, thanks for the suggestion. For the most part it is unadvisable to use yepnope in this fashion, but if you created a submodule I will certainly review and integrate it.

Just a heads up, there are pretty deep implications to doing this properly because core's drupal.js expects to be loaded directly. The creator of LABjs had to help alter the copy of drupal.js included with the module in order to avoid breaking core JS.

rupl’s picture

Title: Optionally load all scripts using yepnope » Create a submodule to supply a generic script loader for all JS within a drupal installation
Version: 7.x-3.0 » 7.x-3.x-dev

title change

rupl’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Modernizr itself doesn't even ship with yepnope anymore, so I will close this. The code never surfaced and as I mentioned originally, I have no intention of writing/maintaining it.