Add loadjs library

Created on 16 August 2021, over 3 years ago
Updated 8 March 2023, over 1 year ago

Problem/Motivation

for #1988968: Drupal.ajax does not guarantee that "add new JS file to page" commands have finished before calling said JS we need a reliable solution for loading js files and know when the file has finished loading.
loadjs is a working, stable solution to load scripts/css/assets and know when they loaded. It is also tiny: only 899 bytes!

Steps to reproduce

N/A

Proposed resolution

N/A

Dependency evaluation

  • Maintainership of the package: created and maintained by Andres Morey
  • Security policies of the package: none I could find
  • Expected release and support cycles: I don't see any roadmap, last release was 3 years ago. package is feature complete so i wouldn't expect new releases.
  • Code quality: code is easy to read and understand, uses jshint to validate code style, there is a pretty comprehensive test suite
  • Other dependencies: no runtime dependencies, dev dependencies are gulp and jshint

The code is pretty straightforward, we could probably roll our own if necessary, the heavy lifting can be done with something like this. Better to use something battle-tested though, especially when it's small like this.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

N/A

📌 Task
Status

Fixed

Version

9.3

Component
Javascript 

Last updated 3 days ago

Created by

🇫🇷France nod_ Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024