Cleaner boot.js

This commit is contained in:
djmaze 2020-07-28 11:23:06 +02:00
parent d28e193556
commit db5751cd00
6 changed files with 181 additions and 307 deletions

View file

@ -53,29 +53,31 @@ This fork has the following changes:
### Removal of old JavaScript
This fork uses jQuery.slim and downsized versions of Underscore.js, Jua.js, etc. etc., and has no support for Internet Explorer.
This fork uses jQuery.slim, downsized/simplified versions of scripts and has no support for Internet Explorer.
The result is faster and smaller download code (good for mobile networks).
Things might work in Edge 15-18, Firefox 47-62 and Chrome 54-68 due to one polyfill for array.flat().
|js/* |1.14.0 |native | div |
|----------- |--------: |--------: |--------: |
|admin.js |2.130.942 |1.359.501 | |
|app.js |4.184.455 |3.127.807 | |
|boot.js | 671.522 | 117.510 | |
|libs.js | 647.614 | 508.324 | |
|polyfills.js | 325.834 | 0 | |
|TOTAL js |7.960.367 |5.119.409 | |
|js/* |1.14.0 |native |
|----------- |--------: |--------: |
|admin.js |2.130.942 |1.359.501 |
|app.js |4.184.455 |3.127.807 |
|boot.js | 671.522 | 109.651 |
|libs.js | 647.614 | 508.324 |
|polyfills.js | 325.834 | 0 |
|TOTAL js |7.960.367 |5.105.283 |
|js/min/* |1.14.0 |native | div |
|----------- |--------: |--------: |--------: |
|admin.js | 252.147 | 177.094 | |
|app.js | 511.202 | 409.778 | |
|boot.js | 66.007 | 14.229 | |
|libs.js | 572.545 | 465.247 | |
|polyfills.js | 32.452 | 0 | |
|TOTAL js/min |1.434.353 |1.066.348 |368.005 |
|js/min/* |1.14.0 |native |
|----------- |--------: |--------: |
|admin.js | 252.147 | 177.094 |
|app.js | 511.202 | 409.778 |
|boot.js | 66.007 | 13.380 |
|libs.js | 572.545 | 465.247 |
|polyfills.js | 32.452 | 0 |
|TOTAL js/min |1.434.353 |1.065.499 |
368.005 bytes is not much, but it feels faster.
368.854 bytes is not much, but it feels faster.
### PHP73 branch