Google Webfonts For Woo Framework
[resolved] Control which weights get downloaded? (5 posts)

  1. iwpdev
    Posted 2 years ago #

    Hi Jason.

    Thank you for creating this plugin. It is an automatic install in all my wootheme sites. Is there a way to control which weights to download? I am using Source Sans Pro (which has a lot of styles) and it is pulling down more weights than I am using. I am trying to optimize page load time.

    Thank you.


  2. Jason Judge
    Plugin Author

    Posted 2 years ago #

    Hi, thank you for the positive feedback.

    That is a good question, and it is something that has been on my TODO list for a while.

    The Woo Themes themes, by default, only support three weights (300, 400, 700) and their various styles (normal, bold, italic). Both the standard Woo themes and my plugin will load up all the available weights, so that can be a bit wasteful of bandwidth if you are only using the three weights that the theme provides.

    I'll take a look at this soon, as it is about time I did some updates, since we are approaching another thousand round number of downloads, and it's nice to celebrate :-)

    So the idea would be that in the admin page, you can select which weights are downloaded. It will default to 300+400+700, but you can select additional if you want. The weights would apply to all downloaded fonts, and would not be different for different fonts. That would be nice, but I suspect a bit of an edge-case use weighed up against the effort it would involve. But we never know where this thing may be heading.

  3. Jason Judge
    Plugin Author

    Posted 2 years ago #

    What the hell - let's just do it. Here is a beta of 1.4.1 if you would like to give it a try:


    It will filter out all weights except 300, 400 and 700 by default. You can select additional weights, or even unselect regular (400) if you want to be a bit funky.

    Let me know hot it goes. If it does not work properly, you can uninstall it and reinstall the official latest version from w.org without losing any settings.

    If you look at the page source, it will list all the weights it is filtering for. Any fonts that don't have any of the selected weights in their repertoire, will be removed from the page and not loaded at all.

  4. iwpdev
    Posted 2 years ago #

    Hi Jason. This is fantastic! What an amazing response time and offering up a solution is more than I anticipated. Everything is working perfectly as far as I can tell. Thank you so much!

  5. Jason Judge
    Plugin Author

    Posted 2 years ago #

    Cool, glad it works. I'm going to try it out on a few more of my sites, then release it at the weekend as an official update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Webfonts For Woo Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.