Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Does Georgism work? Five years later (astralcodexten.com)
    197comments
  2. Go Concurrency Distilled (antonz.org)
    59comments
  3. PipePipe: NewPipe hard fork implementing SponsorBlock (github.com/infinityloop1308)
    214comments
  4. Flip Fluid on Flip Dots (mitxela.com)
    3comments
  5. DeepSeek Elastic Compute (DSec) (arxiv.org)
    78comments
  6. Improving site performance by shipping more CSS (github.blog)
    11comments
  7. Show HN: Reladraw – A diagram language where you decide where to place things (github.com/reladraw)
    79comments
  8. What is the size of Yemen? (2024) (theborys.substack.com)
    23comments
  9. A searchable library of forgotten public-domain film clips from 1915 onward (movingimagearchive.com)
    26comments
  10. Biology might not be quantum, but its math is quantumlike (quantamagazine.org)
    19comments
  11. Exploding variance of means of exponentials: least-squares to the rescue (francisbach.com)
    —discuss
  12. Evolving programming languages in the AI era (dashbit.co)
    51comments
  13. Fifteen years later, the Apple Cards origin story (lexontech.org)
    98comments
  14. ASML says it sold 'absolutely nothing' in Europe in 2026 (tomshardware.com)
    585comments
  15. Drawgent: Coding agent on a live Excalidraw canvas (tangled.org/yanndegat.tngl.sh)
    39comments
  16. An agent used DNS to reach an external chatbot (alignment.openai.com)
    90comments
  17. Real-time feedback: My closing move in every interview (mgrebler.substack.com)
    26comments
  18. Reverse-engineering the Intel 8087's tangent algorithm: more than CORDIC (righto.com)
    9comments
  19. Turning GLM-5.3-Flash into a Jev-like decision model (privatemode.ai)
    29comments
  20. Snap Wants to be a State Actor??–Kansas v. Snap (ericgoldman.org)
    11comments
  21. We Should Be Able to Change Our Languages (jimmyhmiller.com)
    16comments
  22. How I changed teaching after AI managed to do all my homework assignments (thelastsoftwareengineer.substack.com)
    170comments
  23. Promising discoveries about the potential for life on one of Saturn’s icy moons (fu-berlin.de)
    25comments
  24. Bob Mackie dressed stars–if they were brave enough (economist.com)
    1comments
  25. How to keep enjoying programming in a world of LLMs (haskell.org)
    263comments
  26. Modern Object Pascal Introduction for Programmers (castle-engine.io)
    74comments
  27. Generate fonts where every LLM token is the same width (mesh.host)
    12comments
  28. Welcome to the Medical Clinic at the Interplanetary Relay Station (lightspeedmagazine.com)
    12comments
  29. The Evolution of Vending Machines (saturdayeveningpost.com)
    11comments
  30. LA Metro has some of the slowest escalators (basin.la)
    83comments

Improving site performance by shipping more CSS

31 pointsby 18h agogithub.blog
12 comments
2h agoHN ↗

Sometimes, [GitHub] posts a [blog post in which they move away from] some terrible [way of doing things] I've never heard before, and it's a weird indirect way to learn how awful their other [design choices] must be.

https://xkcd.com/2071/

1h agoHN ↗

Once (like a year ago or so) stumbled upon some person's post asking for someone to help them to "fix" some section at their website. It was done !important over !important over !important over !important. Said person was really convinced all it needed was another bunch of !important because apparently that was what ai spit for them, at least at that time

1h agoHN ↗

And yet, there's been a glaring overflow bug on every repo page if the repo has a sponsor button on Firefox Android for months.

57m agoHN ↗

Honestly, hats off to them. It's hard to get anything done with Copilot so I'm amazed they even managed to do this.

39m agoHN ↗

There's room for improvement still. Currently, the production build is using long-dev class names. e.g. `DirectoryContent-module__Box_3__gl6dE` could be compiled to a shorter hash like `gl6DE3a2`.

If you use Vite:

  css: {
    modules: {
      generateScopedName: mode === 'production'
        ? '[hash:base64:8]'
        : '[name]__[local]___[hash:base64:5]',
      }
    }
31m agoHN ↗

Would you need a source map then for prod debugging?

22m agoHN ↗

The improvement would be shipping human-readable structure to allow easier user overrides, not that hash abomination

3m agoHN ↗

Those class names surely gzip better than hashes over the wire?

24m agoHN ↗

Unfortunately the original blog post introducing the great CSS-in-JS system being removed is not in the "Related posts" section, would be nice to compare the thinking in the two

21m agoHN ↗

I don't know how they perceive the performance. I see 41 network requests. That's 2.1 MB of CSS over the wire, blocking rendering and hurting painting and loading speed. There's 400 KB of Tailwind, 87 KB of general CSS, plus another 200 KB of other general CSS. They need to embrace functional CSS properly. I'm sure they could have a single CSS file under 80 KB that renders everything.