Well, blocking javascript would stop that. Noscript is a thing that some people use.
Ublock origin also has that ability
For an increasing plurality (possibly even majority at this point) of sites where the purpose is not purely to read text, this is effectively equivalent to saying "you can just not use the site."