empreinte-digitale / orejime

An easy to use consent manager that focuses on accessibility.
https://orejime.empreintedigitale.fr/
Other
156 stars 26 forks source link

Code splitting #72

Closed felixgirault closed 1 year ago

felixgirault commented 3 years ago

Splitting Orejime into multiple files could reduce the downloaded weight by a great factor in nominal use cases. The most gain would be attained by splitting it in two parts:

This way, the first time a user would visit a site, the core would load, detect that user consent is needed, and load the UI. On subsequent visits, the core would load, detect that the user has already made a decision, setup the configured apps and stop right there.

To go one step further, there could be another gain by loading the required translations on the fly, instead of bundling them all with the main package.

felixgirault commented 1 year ago

I'm closing this issue, as the ongoing work on v3 would solve it (https://github.com/empreinte-digitale/orejime/pull/85)