• Hi there!

    First, let me say that the plugin is great and I use it on a couple of sites powered by Genesis theme Metro Pro. It makes the sharing buttons small and pretty. 🙂

    There is a problem with the plugin, though.

    When testing my pages with Pingdom Speed Tool, on both my sites I get an error (and grade 0) “Minimize request size error”, stating that:

    “The requests for the following URLs don’t fit in a single packet. Reducing the size of these requests could reduce latency.

    data:application/font-woff;charset=utf-8;base64 … 1Xq1Xq3X6DV6jV7T9Yr3qXifivepdPIfY1AvlQABUnNepwAA”

    I have deactivated all my plugins and started to activate them one by one to see what is the reason behind this error. On both my sites the reason is the plugin Genesis Simple Share.

    Is there a way to work out a fix to the plugin in order to eliminate this error?

    • This topic was modified 9 years, 8 months ago by TodorChristov.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, @todorchristov!

    By default the Genericons stylesheet that Genesis Simple Share uses base64 encodes the woff font, which is the source of the warning you’re seeing from Pingdom. This is to work around an issue with cross-origin requests, where a stylesheet loads a font from a different domain or CDN.

    If you’re serving the font from the same domain (or using a CDN but can enable cross-origin resource sharing), you could change the second @font-face declaration in wp-content/plugins/genesis-simple-share/lib/css/genericons.css to look like this instead:

    
    @font-face {
        font-family: 'Genericons';
        src: url('../font/genericons-regular-webfont.woff') format('woff'),
             url('../font/genericons-regular-webfont.ttf') format('truetype'),
             url('../font/genericons-regular-webfont.svg#genericonsregular') format('svg');
        font-weight: normal;
        font-style: normal;
    }
    

    (Replacing the base64 encoded version of the woff url with a path to the file.)

    That will remove the warning from Pingdom. The actual performance gain from doing this is likely to be very small indeed, though, so personally I leave the file unedited on my sites. There are almost always bigger performance gains to be made elsewhere.

    Thread Starter TodorChristov

    (@todorchristov)

    Thank you for your support and ideas!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Genesis Simple Share and Minimize request size error’ is closed to new replies.