Frank Goossens on "[Plugin: Easy FancyBox] Fancybox css not combined with other css"

ساخت وبلاگ

Perhaps not a big deal, but anyway, I was checking my site with Pingdom, and all css files are combined into one, except the one from Easy Fancybox. Perhaps because it is loaded much later? How can I get it to combine with the rest. Perhaps by disabling the loading and adding the css to my own WP custom stylesheet?

https://wordpress.org/plugins/easy-fancybox/

Hi Jack, the style sheet is not loaded differently or later than normal so that should not be the reason. Only thing I can think of is the fact that style sheet is already minified (white spaces etc. removed) which might be a reason to exclude it from concatenation... Are you using a plugin for concatenation of style and script files? Or maybe the PageSpeed module?

Hi Ravan, I use several plugins. WP Fastest Cache and Autoptimize, together with Cloudflare. I tried several combinations of minifying and combining css files. For instance, disabling the css options in the WP Fastest Cache plugin and Cloudflare, but enabling it in Autoptimize. This way I tried all kinds of combinations, but the Fancybox css file somehow keeps being excluded.

Like I said, it's not such a big deal, but when being busy with optimizing these little things keep me busy, trying to solve the puzzle ;).

did a quick test on my localhost dev environment and fancybox' css is aggregated by autoptimize. not sure what might cause this to not be the case on your environment I'm afraid.

frank (ao dev)

Thanks for checking Frank. I tried some more but can't find the 'problem. Perhaps something to do with Genesis or the Dynamic Website Builder.

Just to show you what the two remaining css files are in the html source:

<link rel="stylesheet" type="text/css" href="//www.jacktummers.nl/wp-content/cache/wpfc-minified/2e795eda7dc8b5c988529c11cfd4ba1e/1470307671index.css" media="all"/>
<link rel="stylesheet" type="text/css" href="//www.jacktummers.nl/wp-content/cache/wpfc-minified/551afd416900da6a33ec474df85da422/1470307671index.css" media="screen"/>

oh, but using multiple minification plugins concurrentlty is not a good idea in general, either disable AO and do all in WPFC or disable minification in WPFC and go for AO.

groeten van een Zuiderbuur ;-)
frank

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 302 تاريخ : پنجشنبه 14 مرداد 1395 ساعت: 18:26