AMP achieved this, for better or worse - the only script allowed on the page is AMP common library and approved plugins. I wonder if the Google CDN was removed from the equation if it would have been more embraced.
The analytics tag allows for arbitrary logging endpoints to be used, but that solves one very specific use case.
I believe that they’re going to allow worker scripts in the future, but again, that I don’t believe that will solve every case, and will be AMP specific.
uMatrix is one way to block third-party scripts, but it requires some knowledge to use.