CDN Fallback
-
Hi,
First I just want to tell you plugin is by far one of my most favorite plugins of all time ??
Big Congrats!I know you load FontAwesome using NetDNA’s Bootstrap CDN service to makes icons load faster. But…
I have two questions:- I’ve just notice that if a theme already use the font FontAwesome using wp_enqueue_style, in the page source code I see FontAwesome stylesheet loading twice, one from plugin and one from the theme itself. This may affect in any way the speed of loading the theme? Can this be avoided in any way?
- In cases where CDN are blocked or unavailable, is there a way to automatically load local the files as fallback assuming that I have already a local copy of FontAwesome files in my theme root? Basically I need a code to confirm that cdn script loaded by checking for existence of a variable/function the FontAwesome defines and if it is undefined then automatically load a local FontAwesome files copy. I hope I was well enough understood. Can you help me with this piece of code? Thanks!
Best
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘CDN Fallback’ is closed to new replies.