funkydan2 / hugo-kiera

Kiera - A Hugo Theme for writing
https://hugo-kiera.netlify.app
MIT License
71 stars 53 forks source link

Self-host all CSS/JS dependencies? #77

Open vadcx opened 3 months ago

vadcx commented 3 months ago

Consider pulling all dependencies into this repo. In the recent years all browsers containerized the caches, so the CDNs have practically become useless for the case of "maybe another site had pulled that exact JS/CSS before and it's already in cache".

layouts/partials/header_includes.html

Having all the files on the own server will increase the page speeds and reduce potential privacy leaks.

https://danluu.com/web-bloat/#page-weight-matters // I had also read a funny but technical idea of the entire webpage fitting inside the TCP default window size or even going as far as the entire HTML making it into the first (and single) TCP packet. A little contrived and not the case here. I just didn't find the original link anymore :)