-
AuthorPosts
-
May 29, 2013 at 8:52 am #23986
Hi,
When I see the source of the online enfold example and my local one I see a big difference.
The online example has only 2 stylesheets http requests, nicely minified.
When I watch my downloaded version I have like tons of requests in my header, mainly all avia css. I’d like it to be nicely compact like the online enfold example.
A huge difference.
How can I achieve it like in the online example? I have installed the latest 1.5
like this:
<link rel='stylesheet' type='text/css' media='all' href='http://kriesi.at/themes/enfold/wp-content/plugins/bwp-minify/min/?f=themes/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/css/avia-media.css,themes/wp-content/themes/enfold/config-woocommerce/woocommerce-mod.css,themes/wp-content/themes/enfold/config-bbpress/bbpress-mod.css,themes/wp-content/themes/enfold/config-layerslider/LayerSlider/css/layerslider.css' />
<link rel='stylesheet' type='text/css' media='screen' href='http://kriesi.at/themes/enfold/wp-content/plugins/bwp-minify/min/?f=themes/wp-content/themes/enfold/css/grid.css,themes/wp-content/themes/enfold/css/base.css,themes/wp-content/themes/enfold/css/layout.css,themes/wp-content/themes/enfold/css/shortcodes.css,themes/wp-content/themes/enfold/js/prettyPhoto/css/prettyPhoto.css,themes/wp-content/themes/enfold/js/mediaelement/skin-1/mediaelementplayer.css,themes/wp-content/themes/enfold/css/custom.css' />
<script type='text/javascript' src='http://kriesi.at/themes/enfold/wp-content/plugins/bwp-minify/min/?f=themes/wp-includes/js/jquery/jquery.js,themes/wp-content/themes/enfold/js/avia-compat.js,themes/wp-includes/js/comment-reply.min.js,themes/wp-content/themes/enfold/config-layerslider/LayerSlider/js/layerslider.kreaturamedia.jquery.js,themes/wp-content/themes/enfold/config-layerslider/LayerSlider/js/jquery-easing-1.3.js,themes/wp-content/themes/enfold/config-layerslider/LayerSlider/js/jquerytransit.js,themes/wp-content/themes/enfold/config-layerslider/LayerSlider/js/layerslider.transitions.js'></script>Thank you!
May 29, 2013 at 7:29 pm #121884May 29, 2013 at 9:03 pm #121885Thanks Peter, works well. One problem with it though. It seems to break the google font. When I activate it everything renders well, except the font chosen in the style editor. How does he handle this?
May 30, 2013 at 7:26 am #121886Hey!
I’m not sure – I’ll tag this thread for Kriesi.
Best regards,
Peter
May 30, 2013 at 11:40 am #121887ok, looking forward to a solution ;)
May 30, 2013 at 3:29 pm #121888Hey!
Actually I dont do anything in addition. the plugin works fine for me and so do the google fonts :/
Not sure what is causing your issue for you. mind sending us a link to your site?
May 30, 2013 at 4:10 pm #121889I’m working locally.
Have you tried eg setting droid serif en than activating the minify plugin?
I see both the google font requests are in my source (droid serif and open sans), not sure where it goes wrong.
In which file is the font type written, Kriesi? Since this happens dynamically.
So I can check in the minified css if the font type is declared ok, or maybe is in wrong order and gets overwritten.
When I set the body font type as eg droid serif in the base.css and make it important it does render.
…?
May 31, 2013 at 8:29 am #121890Hi!
Maybe you forgot to hit the “flush the cache” button after you saved the new font settings?
Regards,
Peter
May 31, 2013 at 10:12 am #121891I’m using Open Sans, I see for some reason the space between “Open” and “Sans” is deleted so what should be:
font-family: Open Sans,'Helvetica Neue','Helvetica Neue',Helvetica,Arial,sans-serif;
}
using bwp-minify gets:
font-family: OpenSans,'HelveticaNeue','Helvetica Neue',Helvetica,Arial,sans-serif;
}
Any suggestion?
Thanks,
Francesco.
May 31, 2013 at 10:29 am #121892Try following – in wp-contentthemesenfoldframeworkphpclass-style-generator.php replace
$this->output .= $rule['elements']."{nfont-family:".$rule_split[0].", 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;".$font_weight."n}nn";
with
$this->output .= $rule['elements']."{nfont-family:'".$rule_split[0]."', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;".$font_weight."n}nn";
May 31, 2013 at 1:08 pm #121893Thanks, Dude!
Works like a charm now.
May 31, 2013 at 1:31 pm #121894No way for me… :( still “OpenSans”…
May 31, 2013 at 1:57 pm #121895Hi!
Try to clear the browser cache & flush the minify plugin cache.
Regards,
Peter
May 31, 2013 at 1:58 pm #121896Francesco, you need to recompile your style preferences, so the style generator does it work.
May 31, 2013 at 4:18 pm #121897Thanks Spiv! Anything ok now!!
-
AuthorPosts
- The topic ‘reducing http requests’ is closed to new replies.