klaro-js icon indicating copy to clipboard operation
klaro-js copied to clipboard

Klaro library files are much larger than documented

Open JPustkuchen opened this issue 11 months ago • 2 comments

https://github.com/klaro-org/klaro-js homepage / README.md says:

Small footprint: The minified+gzipped JS is only 37 kB and contains everything that is required, including style sheets and translations.

but looking at the file sizes - raw and uncompressed, they are much larger: grafik

Another point I don't really understand is why klaro-no-translations-no-css.js is not smaller than klaro-no-css.js?

I would expect klaro-no-translations-no-css.js to have the smallest file size?

Is there any further room for optimizations / minifications? Currently, it's one of the largest JS files used in projects.

JPustkuchen avatar Dec 10 '24 08:12 JPustkuchen

Please note that before setting this fixed, the real file sizes on the module page should be updated!

JPustkuchen avatar Dec 12 '24 15:12 JPustkuchen

See also #530

werk21 avatar Dec 16 '24 11:12 werk21