feld on Nostr: arihi :bocchi_arch: I'm doubtful of CSS being the root cause here and not some bad JS ...
arihi :bocchi_arch: (npub1lfg…qg0p) I'm doubtful of CSS being the root cause here and not some bad JS framework or CMS that someone hacked and it's not rendering properly. There are probably multiple reasons for this
- didn't rel="preload" the stylesheets
- stylesheets on another domain and didn't set rel="dns-prefetch" and rel="preconnect" where relevant
- wrong Cache-Control headers
- javascript that isn't set to defer so it tries rendering the page before the CSS was processed making it happen out of order and jump around funny
Browsers can render 3D rooms with only CSS almost instantly. It can do crazy shit like this with pure CSS
Here's the Mona Lisa in 6.85KB of CSS (22.6KB uncompressed)
https://css-art.com/mona-lisa/
- didn't rel="preload" the stylesheets
- stylesheets on another domain and didn't set rel="dns-prefetch" and rel="preconnect" where relevant
- wrong Cache-Control headers
- javascript that isn't set to defer so it tries rendering the page before the CSS was processed making it happen out of order and jump around funny
Browsers can render 3D rooms with only CSS almost instantly. It can do crazy shit like this with pure CSS
Here's the Mona Lisa in 6.85KB of CSS (22.6KB uncompressed)
https://css-art.com/mona-lisa/