Comments (4)
A lot of unneeded scripts are loaded because there is no sector > item > option
menu difference between the search and form pages. Unless in debug mode though, the impact isn't that big because they will be cached by the browser.
For me, the computer search page loads 14.2MB of resources and only 422kb actually get transferred when in production env and with an updated DB. The worst offender is the locale JSON data which Chrome isn't using from the cache for some reason (not expired and the same URL is requested each time) at 371kb.
from glpi.
Is it really worth it to split libs loading as it is cached after the first load ?
This behavior lead to bugs many time because we forgot to load a library for a given page.
from glpi.
I think keeping it split is a good idea. Maybe not the way we are doing it now with the menu layout determining what gets loaded and not with as many script imports for a single feature.
Maybe something better can be done using webpack.
We really need to modernize our JS code in general.
from glpi.
I already have in mind a solution to be able to load modules only when it is necessary, and to also be compatible with CSP (= no inline JS code). I already implemented it on some projects, and it worked well. Anyway, changing this part is too late for GLPI 11.0, it can only be done later.
For GLPI 11.0, we should focus only on what could be considered as a regression, i.e. libs that were not loaded in the same context in GLPI 10.0 and that are really heavy.
from glpi.
Related Issues (20)
- Ticket statics timeline broken
- Js console: Uncaught TypeError: ajax_request.profile.sql is undefined HOT 1
- .card-title broken display
- form helper for system name in asset definition displays raw html
- GLPI 11 : 404 error with ...-vue.js HOT 5
- Autoloading custom asset classes broken HOT 1
- Error on displaying network ports HOT 1
- Slow dashboard loading HOT 4
- ticket.knowbaseitems gets knowbaseitems by id not knowbaseitems_id from knowbaseitem_item HOT 1
- codespace build seems to install dependencies twice HOT 1
- "missing configuration" view miss tabler css HOT 2
- FAQ not visible for anonymous
- mail collector: content inside blockquote is ignored
- Error export PDF HOT 3
- Undefined constant "Glpi\RichText\GLPI_TEXT_MAXSIZE (I lost all personal tickets and I no longer have computers) HOT 5
- 2FA Login Broken HOT 3
- Favorite in Saved searches not working
- Duplicated entries in "Computer - Antiviruses"
- only 10 lens with expand_dropdowns=True
- Wrong alternate username with glpi agent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glpi.