Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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
Comment #1
ruplHi, 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.
Comment #2
rupltitle change
Comment #3
ruplModernizr 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.