What is Nostr?
feld /
npub1yck…ujmw
2024-03-14 19:44:54
in reply to nevent1q…j0j2

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/
Author Public Key
npub1yck44z5zqxmwpqzqs75ay6ffjdw843ng9p6mz0lzfff3fgz2djlsngujmw