• Hi,

    It seems that your plugin uses a font ssbp.woff, and I am trying to preload it in WP Rocket.

    After studying the source code of the HTML, I get the following CSS code:

    @font-face {
    				font-family: 'ssbp';
    				src:url('https://www.datanumen.com/blogs/wp-content/plugins/simple-share-buttons-adder/fonts/ssbp.eot?xj3ol1');
    				src:url('https://www.datanumen.com/blogs/wp-content/plugins/simple-share-buttons-adder/fonts/ssbp.eot?#iefixxj3ol1') format('embedded-opentype'),
    					url('https://www.datanumen.com/blogs/wp-content/plugins/simple-share-buttons-adder/fonts/ssbp.woff?xj3ol1') format('woff'),
    					url('https://www.datanumen.com/blogs/wp-content/plugins/simple-share-buttons-adder/fonts/ssbp.ttf?xj3ol1') format('truetype'),
    					url('https://www.datanumen.com/blogs/wp-content/plugins/simple-share-buttons-adder/fonts/ssbp.svg?xj3ol1#ssbp') format('svg');
    				font-weight: normal;
    				font-style: normal;
    
    				/* Better Font Rendering =========== */
    				-webkit-font-smoothing: antialiased;
    				-moz-osx-font-smoothing: grayscale;
    			}

    It seems that the font used is ssbp.woff?xj3ol1 instead of ssbp.woff? Note the ?xj3ol1 parameter. Originally I think it is a cached version generated by the cache plugin. But I try to visit the uncached version and also get this value.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter chcw

    (@chcw)

    Any updates on this issue?

    Plugin Author Simple Share

    (@davidoffneal)

    @chcw Sorry about the lack of communication! What is the problem you’re having exactly? I not sure I saw a question in your request.

    Plugin Author Simple Share

    (@davidoffneal)

    have you tried:

    <link rel=”preload” href=”/blogs/wp-content/plugins/simple-share-buttons-adder/fonts/ssbp.eot” as=”font” crossorigin=”anonymous” />

    <link rel=”preload” href=”/blogs/wp-content/plugins/simple-share-buttons-adder/fonts/ssbp.woff” as=”font” crossorigin=”anonymous” />

    <link rel=”preload” href=”/blogs/wp-content/plugins/simple-share-buttons-adder/fonts/ssbp.ttf” as=”font” crossorigin=”anonymous” />

    Thread Starter chcw

    (@chcw)

    @davidoffneal,

    Thank you for your reply. My question is, whether I need to preload the font file as:

    ssbp.woff?xj3ol1

    or as

    ssbp.woff

    THe latter removes the parameter ?xj3ol1.

    And whether the parameter ?xj3ol1 is generated by your plugin?

    Plugin Author Simple Share

    (@davidoffneal)

    @chcw Ah, ok got it. Go ahead and preload without it. That is just a cache busting param that is hardcoded. The preload should suffice without it. Go ahead and give that a shot and let me know if you have any issues.

    Worst case scenario you can target the url WITH the param in it since we will not be changing that query string addition in the future anyways.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ssbp.woff used in your plugin’ is closed to new replies.