• Resolved linkback

    (@linkback)


    Anyone knows how to optimize the theme speed? currently two font scripts are loading. And makes up for 15 % of my loading time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • See this excellent article on how to improve page speed when using Google fonts: http://www.sitepoint.com/improve-page-performance-font-loader/

    When your site is browsed by a visitor whose device does not have the Lato and Raleway fonts installed (the majority) the fonts are loaded from Google. This will delay the load of your pages (even as zips these fonts add 1MB to the data that needs to be sent to the users browser + of course 2*2 more response requests).

    As stated in the article, Theme speed could be optimized by initially specifying a web-safe font (one that is “built in” to most devices) in CSS and using JS to switch once the Google fonts have downloaded.

    I doubt I’ll have time to try it out but I’d be interested in the results if anyone else does.

    Theme Author Anders Norén

    (@anlino)

    Hi linkback,

    You could remove the Google Fonts from the theme altogether as well. Open functions.php and delete/comment out line 60 and line 63, and the fonts won’t be loaded.

    — Anders

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Speed up theme’ is closed to new replies.