
-
AuthorPosts
-
March 29, 2018 at 3:56 am #934663
What files might I look at to optimize & resolve page speed testing by combining both external CSS & JS??
https://tools.pingdom.com/#!/cl6fV7/http://www.drstevenlazarus.comMarch 29, 2018 at 5:08 am #934675Hey jrwired1073,
Please try using a caching plugin such as W3 Total Cache for scripts and Smush it for images.
After installing Smush it regenerates thumbnails using the thumbnail regenerator plugin.
Hope this helps :)
Best regards,
VinayMarch 29, 2018 at 5:39 am #934676that actually degraded the site’s performance (not improve it). See my link above, the external CSS & JS isn’t being combined/compressed. I had better numbers using Autoptimize. I know HOW to combine, I just need to know what files I can make the changes in on the theme.
-
This reply was modified 7 years, 3 months ago by
jrwired1073.
March 29, 2018 at 7:58 am #934701Hi,
The CSS files in the Pingdom test seems to all be coming from Autoptimize, so I’m guessing you need to make adjustments to the plugin? This thread might be of interest to you as well: https://kriesi.at/support/topic/seo-google-page-insights-blocking-rendering-ressources-above-the-fold/
Best regards,
RikardMarch 29, 2018 at 3:32 pm #934867Not sure I can believe you looked at them? I disagree… they come from 2 external sources referenced in the theme (not being manipulated by Autoptimize):
1) fonts.googleapis.com
2) onsite CSS not being compressed/singularized by Autoptimize (and yes, I’ve already exhausted the advanced settings on that plugin with no improvement to below)There are 6 CSS files served from fonts.googleapis.com. They should be combined into as few files as possible. https://fonts.googleapis.com/css?family=Montserrat%7COpen+Sans:400,600 https://fonts.googleapis.com/css?family=Open+Sa ... C700%2C700i&ver=fe0dd814f74e71e8705a105b9e95bf8a https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i https://fonts.googleapis.com/css?family=Roboto+ ... C700%2C700i&ver=fe0dd814f74e71e8705a105b9e95bf8a https://fonts.googleapis.com/css?family=Roboto+ ... ,700i|Roboto:300,300i,400,400i,500,500i,700,700i https://fonts.googleapis.com/css?family=Source+Code+Pro There are 4 CSS files served from www.drstevenlazarus.com. They should be combined into as few files as possible. https://www.drstevenlazarus.com/wp-content/cach ... autoptimize_676692af589d864686fab6d0ffd80592.css https://www.drstevenlazarus.com/wp-content/cach ... autoptimize_f7b0ca8e37598219410c6f0e1715ad5b.css https://www.drstevenlazarus.com/wp-content/cach ... autoptimize_fb0a95a1ed5dcf43010c1bee755162fe.css https://www.drstevenlazarus.com/wp-includes/css ... ons.min.css?ver=fe0dd814f74e71e8705a105b9e95bf8a
March 30, 2018 at 5:17 am #935105Hi,
Google fonts; did you try to load the fonts locally instead?
The files your plugin is creating; did you try to contact the plugin authors to see why that is?
Best regards,
RikardMarch 30, 2018 at 5:40 am #935107It’s your theme, how do I force a local load of google fonts?
As I asked before where/what file can I edit to localize those Google Fonts? All that’s needed is to merge them into one line & comma separate actually, but I don’t know where that’s stored in your theme.March 30, 2018 at 2:16 pm #935314Hi,
The theme (version 4.2.6) has a new minification or compression feature. Please disable the Autoptimize plugin then re-save the theme options to regenerate the compressed scripts and stylesheets. Let us know if it scores better than when the plugin is activated.
You can load the font with javascript but it sometimes causes the text to flicker.
// https://github.com/typekit/webfontloader
Best regards,
IsmaelMarch 30, 2018 at 6:04 pm #935384I’m on Enfold Version: 4.2.3, with no prompt/notification to upgrade. Where to find the 4.2.6 & possible readme.txt to upgrade to it?
April 1, 2018 at 7:44 am #935712Hi,
Thanks for the feedback. Could you try updating manually maybe? http://kriesi.at/documentation/enfold/updating-your-theme-files/
Best regards,
RikardApril 4, 2018 at 3:34 am #936889Rikard/Ismael,
I have updated the theme to Version: 4.2.6 & saved the theme settings with Autoptimize turned off.
No real change in https://tools.pingdom.com/#!/cKNsMS/https://www.drstevenlazarus.com/I’m still unable to combine external CSS & fonts (see my concern in the thread above).
What next?
April 4, 2018 at 2:08 pm #937162Hi jrwired1073,
Well, you can try deactivating the themes’ scripts optimization and configure the Autoptimize to do the job for you.
To disable Enfold optimization you need to add this code to your functions.php
add_filter('avf_merge_assets', function() { return array('css' => 'none', 'js' => 'none'); });
If you need further assistance please let us know.
Best regards,
Victoria -
This reply was modified 7 years, 3 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.