OddOneOut / bwp-minify

A WordPress Minification plugin that relies on Minify PHP library and WordPress's enqueueing system to serve minified CSS and JS to your audience
http://betterwp.net/wordpress-plugins/bwp-minify/
49 stars 23 forks source link

Feature request: enable local caching of external scripts to get around Adblock #70

Open galbaras opened 8 years ago

galbaras commented 8 years ago

Adblock browser extensions stop scripts that aren't from the same domain as the page. This is very annoying, because it's meant to stop ads, but instead stops live chat, for example.

I've written some code that checks enqueued scripts to see if they are from an external domain, e.g. google.com or olark.com, creates a local copy of them and serves it instead, which means that Adblock will allow it to run. One a day, it refreshes the cached page, just in case.

Of course, integrating this code into BWP Minify will be MUCH better :)

If you're interested, let me know.