Giter VIP home page Giter VIP logo

Comments (4)

emilv avatar emilv commented on June 24, 2024

According to the web apge you linked to, the website is fully loaded within 600 ms. Pagespeed Insights also shows a 100% score on both desktop and mobile. I suggest we close this issue.

from hstspreload.org.

Kenneth-Barber avatar Kenneth-Barber commented on June 24, 2024

According to the web apge you linked to, the website is fully loaded within 600 ms. Pagespeed Insights also shows a 100% score on both desktop and mobile. I suggest we close this issue.

The website is loaded quickly only if you are in the US. Elsewhere, it takes 1 to 3 seconds. Also, minification isn't just about speed. It's about reducing the amount of data that needs to be sent to get the web page to load. Generally, minification is just good practice and should be done by every website by default (ideally) rather than done as seen fit.

from hstspreload.org.

lgarron avatar lgarron commented on June 24, 2024

Modern full-site minification often takes a fairly complicated pipeline, which can mean a lot of files, multiple toolchains, potential deployment hurdles, mismatch between development and production, portability/contributor barriers, vuln alert management, etc.

hstspreload.org currently already has a 100% Lighthouse score. That doesn't mean there's no room for improvement, but compared to a lot of other sites:

  • hstspreload.org has fairly few and light resources (<15kB total, excluding the favicon),
  • has a pretty readable and functional layout without CSS, and
  • is needed once in a while by developers, who on average will have serviceable internet and don't rely on the site to be lightning fast for their everyday work.

I think it might be worth trying to make sure the server sends gzip responses, but I would argue that trying to minify the resources would not be worth the maintainability cost.

I would also be surprised if minification would make a huge impact specifically outside the US. I gather that latency would be a bigger issue — slow connections in the US would have the same issue if 20kB vs. 10kB makes a big difference. If we want better performance outside the US, it would probably be better to use CDN functionality in Google Cloud, or to split out the static parts of the site into static hosting with a CDN in front — but I also think that's more maintenance trouble than warranted, unless we hear of specific issues way beyond 1-3 seconds that could be fixed this way. 1

Footnotes

  1. Since I live in the US, I can't talk that authoritatively about connections outside the US, though.

from hstspreload.org.

lgarron avatar lgarron commented on June 24, 2024

(Just to be clear: I'm not saying that it's bad to advocate for minification in general — it was good to ask! Many sites would benefit from shipping fewer bytes from the frontend, and minification can be a valuable tool for that. My argument was based on this particular situation.)

from hstspreload.org.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.