A much simpler solution might look like a whitelisted set of domains/domain patterns that are given priority for network and CPU usage. For example, a meta tag on every page that lists your domain and CDN domain as "primary", and every other domain is then aggressively rate-limited by the browser.