Bug 36674 - Lazy load api-client JS files
Summary: Lazy load api-client JS files
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-23 09:52 UTC by Jonathan Druart
Modified: 2024-04-23 10:04 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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