Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
What I discussed with alexweber is to have a simple API for JS loader, currently a JSloader.load() and a JSloader.ready event. JSloader.load() loads scripts in parallel (and non-blocking) but executes them in the correct order (as there are only 2 scripts that we're sure that we can execute them in parallel: jQuery & drupal.js, so we don't care).
All JS loaders support these two functionalities, what we needs is just a 100-byte abstraction layer for each JS loader.
As the author of labjs.module, but I keep in mind this API when developing the module and try to looking for other functionality what we might need. Of course, at the same time, to fix any compatibility problem (sadly recently I haven't had enough time to take care of that module, but it will be fixed in the next 1 or 2 weeks).
Comments
Comment #1
jcisio commentedWhat I discussed with alexweber is to have a simple API for JS loader, currently a JSloader.load() and a JSloader.ready event. JSloader.load() loads scripts in parallel (and non-blocking) but executes them in the correct order (as there are only 2 scripts that we're sure that we can execute them in parallel: jQuery & drupal.js, so we don't care).
All JS loaders support these two functionalities, what we needs is just a 100-byte abstraction layer for each JS loader.
As the author of labjs.module, but I keep in mind this API when developing the module and try to looking for other functionality what we might need. Of course, at the same time, to fix any compatibility problem (sadly recently I haven't had enough time to take care of that module, but it will be fixed in the next 1 or 2 weeks).
Comment #2
vacilando commentedSubscribing.
Comment #3
Fidelix commentedSubscribing...
Is there going to be a D6 version of this module?