Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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=2

    Regards,
    Poirot

    #766456

    Hey 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,
    Nikko

    #766923

    Hi 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.
    #767184

    Hi,

    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,
    Nikko

    #767403

    Hi Nikko,
    Ok, thanks!

    Regards,
    Poirot

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Speed up page loads’ is closed to new replies.