|
|
|
|
|
by todotask2
410 days ago
|
|
> A lot of unnecessary bloat can be avoided by only including it when it looks like a user is visiting for the first time (and likely hasn't got the CSS files cached already I’ve thought about that before but couldn’t figure out the ideal approach. Using a unique session cookie for non-logged in users isn’t feasible, as it could lead to memory or storage issues if a malicious actor attempts a DDoS attack. I believe this approach also doesn’t work well for static pages, which are likely already hosted close to users. One useful trick to keep in mind is that CSS content-visibility only applies in certain scenarios. One agency I came across using <iframe> for every section is a bad idea. So my conclusion is mobile-first CSS is generally more practical and use PWA which I'm building now for site that has lots of listings. |
|