by Panzerschrek · 1mo ago · 0 comments
We should go further. A web-site with mostly static content should not use user-side scripting (Javascript) at all, it's unnecessary for it. It should be required only in rare cases where a site is basically an application and require manually turning it on each time such application is opened.
If such client-side behavior counts as “basically an application,” then “applications” is a larger set than seems useful.
If you don't care about your site being static then you can track it server side, but that has big implications for his you can just your site. Sticking a little flag in localStorage really is the best solution, if you can get past ideological purity.
- Using buttons/links to seek to specific times in a <video>
- Localizing dates
- Expanding/collapsing sets of comments
Then sites that want to track will just add some JS. Seems unlikely to help.