mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-12 23:31:02 +00:00
848e3f90e1
Every lucide icon is its own module, and the plugin icon lookup reaches all of them by name from the navigation. The bundler therefore put each icon another chunk also uses into a chunk of its own: 187 files of a few hundred bytes, each one a request on a first visit and an entry in the precache. A `vendor-icons` group collects them. The first load asks for 32 script files instead of 224 (the bytes stay the same, 3.9 MB before compression), and the service worker installs 460 files instead of 652. With 50 ms added to every response the login page reaches DOMContentLoaded in 0.5 s instead of 3.8 s.