3 ms·
Transfer size is one thing, but the JS code has to be parsed and executed on every web page load. Moreover, it is often loaded as a blocking <script> in <head>.
by niutech 3y ago
Transfer size is one thing, but the JS code has to be parsed and executed on every web page load. Moreover, it is often loaded as a blocking <script> in <head>. My point is CSS and no JS is better than JS.
- recursivedoubts 3y agohtmx loads in partials and processes them, you don't pay the price of loading it over and over again
- niutech 3y agoIf you don't use JS at all, you don't pay the price too and it's faster since there is no JS to parse and execute - see e.g. https://github.com/niutech/phooos https://github.com/niutech/phooos