Support » Plugin: WP Rocket ASYNC CSS » Exclude with wild card and id or class.

  • Grabs google fonts and adds them local as ttf instead of woff and woff2 with 5min TTL.

    Is it possible to exclude urls with wild card? Same with inline css possible to exclude ID’s or classes? So I can fix the broken inline svgs?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Derrick Hammer

    (@pcfreak30)

    It should be grabbing all the assets in url() statements and downloading them. Generally, the intention there is you should ideally be using your own CDN rather than a 3rd party so you can ensure control of the requests and minimize DNS lookups. What the font-face statement has is not modified passed conditionally adding font-display: swap

    Let me know your thoughts 🙂

    Thread Starter Rookie

    (@alriksson)

    Yeah totally agree but the function to grab fonts have some hiccups, and normally using other ways to grab them and load locally in the edge. And don’t like that your plugin loading them ass tff instead of woff2 and removing just font-display: swap;.

    1) An option to exclude google fonts for my other solutions when I don’t want your plugin to grab.

    2) Serve modern format for the font, woff and woff2 for supported browser together with not stripping the front-display: swap; and listen to the servers TTL it is loaded from. If local listen to origin if CDN listen to edge TTL 🙂

    Plugin Author Derrick Hammer

    (@pcfreak30)

    Yeah totally agree but the function to grab fonts have some hiccups, and normally using other ways to grab them and load locally in the edge

    As stated the functions ONLY rewrite URLs and download files. Other than that, how the files are actually structured is a Google problem. See https://github.com/pcfreak30/rocket-async-css/blob/master/lib/Rocket/Async/CSS.php#L898 and https://github.com/pcfreak30/rocket-async-css/blob/master/lib/Rocket/Async/CSS.php#L1352.

    Thanks.

    Thread Starter Rookie

    (@alriksson)

    Ok but I don’t agree and there is something that isn’t working as expected:

    1) Works and loads woff2 without your plugin.
    2) Work with other plugin to load the google fonts locally
    3) Works with my other solution.
    Both 2 and 3 with woff 2 and swap 🙂

    Plugin Author Derrick Hammer

    (@pcfreak30)

    I would need to see CSS code example/comparisons of it before my plugin and after processing and the problem to try and identify any bugs in processing.

    Thanks 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Exclude with wild card and id or class.’ is closed to new replies.