3 ms·
Let's say you go with js for the user specific parts of some page. What's the best pratice to deal with those with js disabled?
by iaskwhy 15y ago
Let's say you go with js for the user specific parts of some page. What's the best pratice to deal with those with js disabled?
- chrismsnz 15y agoIf you're using varnish as your front-end cache, ESI is another way to stitch together different parts of a page. https://www.varnish-cache.org/trac/wiki/ESIfeatures https://www.varnish-cache.org/trac/wiki/ESIfeatures
- Fluxx 15y agoESI, as it's already been pointed out, is one big way. I tend to not like requiring JS to make my pages usable, as not everyone has JS turned on and it's ability to work correctly in non-mainstream browsers, while improving, can be spotty. Really, if most pages on your site are identical for every user, sans their name + avatar at the top, it's worth figuring out a strategy to serve the page content from disk and swap in the dynamic parts easily without hitting your app layer.