[WP Smush Pro] CDN Opt-In

Hey guys,

as you know, there's a strict privacy law in the European Union restricting admins to use CDNs (of all kinds) without asking for permission.

So by now there's a great plugin – Borlabs Cookie (www.borlabs.io) – for that. It simply blocks all kinds of embeds and scripts until the visitor confirms it's usage (i.e. Google Maps, Analytics, Facebook Pixel…). I'd love to activate SmushPro / Hummingbird-CDNs in the same way. Basically all I need is a short script to turn CDN on and one to turn it off. I think this would be a great solution for many people still struggling with GDPR-compliance (I guess theres a few…).

Thanks in advance and kind regards