See http://text.npr.org or http://lite.cnn.io for example
See http://text.npr.org or http://lite.cnn.io for example
For example, AMP provides an ad component that is probably the by far most performant way to display ads on the web. Without AMP, the site has to use alternative ad solutions, which probably perform worse and load more JS.
The only way for the site to reduce JS would be to find an ad solution that is similar to AMP in terms of performance, and I fear such a solution just doesn’t exist.
Simple ads can be served statically without JS.
(Disclosure: I work on ads at Google, but I don't know much about how our spam detection works and I couldn't talk about it if I did.)
And if you think a whitelist would work, all it takes is one look at how rapidly new JS libraries come and go to render that unfeasible