Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.