• In search console performance metrics Google always shows warning concerning webfonts during reload. I know there are couple of plugins offering fixes for the issue, but I don’t want to waste too much resources for little functionality that can be solved by placing couple of lines of code in functions.php. Can someone please share a reliable code to fix the issue with minimal resource usage? Well, I know I should place font-display: swap in some lines of CSS files charged to download fonts from remote servers, but one file has many lines of code which instructs the browser to download the fonts. One PHP function could do that swiftly.

    • This topic was modified 2 years, 5 months ago by boostxd.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    WARNING: The “page I need help with” seems to be a malware or infected site. I have removed the link.

    @boostxd Get a fresh cup of coffee, take a deep breath and carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures.

    If you’re unable to clean your site(s) successfully, there are reputable organizations that can clean your sites for you. Sucuri and Wordfence are a couple.

    Thread Starter boostxd

    (@boostxd)

    @sterndata What makes you think my site has/was virus/hacked?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    First, I see a prompt to install Flash (which is no longer a thing) and then I click to make it go away and a new tab opens, “Ultimate Ad Eraser”.

    Thread Starter boostxd

    (@boostxd)

    I think you gave me the wrong link, that link takes me to a site that has nothing to do with me. BTW, are you really sure you didn’t mistaken my site with some other?

    Thread Starter boostxd

    (@boostxd)

    I have ads in my site, the ad network I’m using is Adsterra. That was probably social bar unit/type, it can be a little buggy sometimes for some users (in some countries).

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It sure doesn’t like my ad blocker, I guess, and wants desparately to junk up my computer.

    Thread Starter boostxd

    (@boostxd)

    My ads have anti-adblock technologies embedded, but they are not aggressive – they are supposed to be evasive. But like I said that was probably a bug. Or your adblocker may have triggered that unusual behavior.

    • This reply was modified 2 years, 5 months ago by boostxd.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    “they are supposed to be evasive” And so I’m done with your site. Anyhow, I’m not sure how you’d do anything in PHP to deal with adding CSS to your webfont loads. If you think those plugins are helpful, download one, check the source, and figure out what they’re doing. You can then abstract that to make your own minimal plugin.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[NSFW] How to ensure text remains visible during webfont loading?’ is closed to new replies.