-
AuthorPosts
-
March 24, 2017 at 4:35 pm #766269
Hi,
In order to speed up pages loads, I’d like to know:– Are the fonts embedded in the theme faster to load than using Google-fonts code in the <head> element?
– Is there a way to simplify or merge this list of css files? Would this help increase speed?//fonts.googleapis.com/css?family=Open+Sans:300,400,400italic,600,700
wp-content/plugins/content-views-query-and-display-post-page/public/assets/css/cv.css?ver=1.9.6
wp-content/themes/enfold/css/grid.css?ver=2
wp-content/themes/enfold/css/base.css?ver=2
wp-content/themes/enfold/css/layout.css?ver=2
wp-content/themes/enfold/css/shortcodes.css?ver=2
wp-content/themes/enfold/js/aviapopup/magnific-popup.css?ver=1
wp-content/themes/enfold/js/mediaelement/skin-1/mediaelementplayer.css?ver=1
wp-content/themes/enfold/css/print.css?ver=1
wp-content/uploads/dynamic_avia/enfold_child_theme.css?ver=58d3f4c5b58e2
wp-content/themes/enfold/css/custom.css?ver=2
wp-content/themes/enfold-child/style.css?ver=2Regards,
PoirotMarch 25, 2017 at 4:54 am #766456Hey Poirot,
Using fonts embedded in the theme is slower compared to those in googlefonts cdn since you will be downloading in parallel from 2 different sources.
Merging the css files should increase the speed, you can try to use plugins such as https://wordpress.org/plugins/autoptimize/
Best regards,
NikkoMarch 26, 2017 at 12:15 pm #766923Hi Nikko,
Ok, I am now using Googlefonts code in the <header>. Can I remove the fonts embedded in the theme, to speed up browsing?
Edit: I notice that in “Theme Options > General Styling > Fonts” I need to choose the font for body text. If I mark Open Sans here, will it use the embedded font, or will it use directly the Googlefonts code in the <header>?
Regards,
Poirot- This reply was modified 7 years, 9 months ago by Poirot.
March 27, 2017 at 5:27 am #767184Hi,
In Enfold Theme Options > General Styling set Heading Font to Default and body text set to any web safe font like Arial to deactivate the standard google font. Then on Quick CSS you need to put some css codes to define the fonts you want to use.
Best regards,
NikkoMarch 27, 2017 at 1:14 pm #767403Hi Nikko,
Ok, thanks!Regards,
Poirot -
AuthorPosts
- The topic ‘Speed up page loads’ is closed to new replies.