veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

262
active users

#progressiveenhancement

0 posts0 participants0 posts today
Replied in thread

Thank you for stopping to think about this, @AppleJuiceNerd.

The approach that I'd recommend is termed #ProgressiveEnhancement.

Your site should work entirely without #JavaScript, load all the information and render just with HTML and CSS.

Then, if you have enhancements which *require* scripting, add those. If there are relatively-new features you want to use, make sure nothing crucial depends on that new version.

This can be more work, you may have to duplicate a feature or two; be sparing.

Continued thread

A common piece of feedback I receive on this one is “it’s Chrome-only, so I won’t use it”.

Here’s the kicker: that doesn’t really matter here, as it’s a nice #ProgressiveEnhancement: Browsers without support get the status quo. Browsers with support get the nice transition.

At worst you make the experience better in browsers with support.

developer.chrome.com/docs/css-

Chrome for DevelopersAnimate to height: auto; (and other intrinsic sizing keywords) in CSS  |  CSS and UI  |  Chrome for DevelopersAnimate to and from intrinsic sizing keywords with `interpolate-size` and `calc-size()`
Replied in thread

@schizanon@mas.to sort of a philosophical question:

If I'm rendering posts on the client-side, should I remove server-side rendering in order to speed up the initial page load? Currently it sometimes timesout.

This would make the app essentially useless with #JavaScript disabled, which is kind of why I've put this off this long. I'm kind of proud of my No-JS #Mastodon client.

@kristoferjoseph @tbeseda @knowler @colepeters @macdonst @brianleroux @enhance_dev