Tagged: x
-
AuthorPosts
-
September 7, 2016 at 1:05 pm #1164874
Hi All,
Upon adding W3 Total Cache to a new site (tried others, W3TC provides the best optimization/performance), Fontawesome icons and post forward/back arrows do not show.
It has to do with W#TC minify. Enabling minify > “auto” breaks Fontawesome. Enabling minify > “manual” and disabling Inline JS minification corrects the problem, however it has a very negative impact on performance.
With W3TC active including minify overall performance is very good:
Pingdom “A” 91
PageSpeed “A” (93%) – YSlow B (83%)When W3TC is deactivated performance drops to:
Pingdom “C” 73
Pagespeed “D” (67%) – YSlow D (54%)I would like to keep using W3TC of course, but would also like to resolve the Fontawesome problem with Firefox and Chrome.
I’ve tried all of the remedies including COR (site is not using CDN), adding .htaccess file items, etc. with no change.
I’ve attached supporting screenshots and will post credentials in a private reply.
TIA!
September 7, 2016 at 1:07 pm #1164880Additional screenshot:
September 7, 2016 at 1:10 pm #1164889This reply has been marked as private.September 7, 2016 at 8:05 pm #1165516Hello There,
Thanks for writing in and the very detailed information. Are you using CloudFlare or may have installed a caching plugin like WordFence, W3 Total Cache or WP Super Cache? Please keep in mind that after doing every updates, always remember to clear all caches when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.
Please let us know how it goes.
September 8, 2016 at 2:02 am #1165935Thanks for responding. Can you please read my original post? It answers all of your questions.
I’ll look forward to your advice.
Best wishes.
September 8, 2016 at 3:54 am #1166093Hi,
I can see the icons on my end.
http://screencast.com/t/0s6eJMEySeE
Please clear your browser cache and check again.
Thanks
September 8, 2016 at 9:06 am #1166424Hi Paul,
Thanks for looking. Still not sure what the issue is. All browsers cache/history cleared and even when logging in using a proxy the FA icons do not appear in Firefox and Chrome (at least on my end).
Again, I can disable minify in W3TC and all FA items are immediately visible so it’s not a caching problem.
Any other thoughts would be welcome.
TIA.
September 8, 2016 at 2:43 pm #1166937Hi again,
Please add the following code in your
Child theme's style.css
file:@font-face { font-family: 'FontAwesome'; font-style: normal; font-weight: 400; src: local('FontAwesome'), local('FontAwesome'), url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/fonts/fontawesome-webfont.woff) format('woff'); }
Let us know how this goes!
September 9, 2016 at 12:22 am #1167554Hi Nabeel,
Thank you for looking into this. I already had similar code in my child theme’s style.css which should have resulted in the same outcome, however I swapped that out for the code you suggested. Unfortunately no change.
Ultimately it appears that there’s a conflict with W3 Total Cache and X Theme’s minify scripts.
That said, it really looks like X Theme is overkill for this website’s minimal requirements. I’ve tried using several other less robust, more basic themes and they all worked fine so I’m going to go ahead and switch to a different theme and save the X Theme license for a more appropriate website.
Thanks again to everyone that took the time to review this, it’s truly appreciated.
Best wishes,
Rich
September 9, 2016 at 3:23 am #1167701Hi there,
X theme’s minified scripts are static files, it doesn’t change (unless there are updates). And a non-changing file should have no effect on W3 Total cache since it will stay the same. X theme doesn’t have a minify feature either.
Minified files are different from minify feature. Minified files are pre-compressed files, it doesn’t need processing like a minify feature that most optimization plugin has.
It may be related to something else, maybe transients or likes.
And you’re always welcome, see you gain next time 🙂
Thanks!
-
AuthorPosts