Bug 36674

Summary: Lazy load api-client JS files
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: pedro.amorim
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33024
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Jonathan Druart 2024-04-23 09:52:08 UTC
js/fetch/api-client.js is fetching all the api-client.js files every time a page is hit in Koha.
We should lazy-load instead. Certainly using import()?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import