GithubHelp home page GithubHelp logo

sgudbrandsson / google-webfont-optimizer Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 5.0 224 KB

WordPress plugin that makes your website a bit faster. The plugin optimizes the way Google Web fonts are loaded on your website.

License: Other

PHP 100.00%

google-webfont-optimizer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

google-webfont-optimizer's Issues

How to change the priority without breaking?

Hi Sigurdur,

Thanks for contributing this code.

I'm having an issue though. I'm trying to where GWO's output is rendered in my HTML.

Right now, GWO loads as the very first thing in my head. I would like to change that and compare rendering results.

How can I do that?

I've tried changing the priority, hook, etc. to move the GWO after my Above The Fold css, but when I change anything the GWO doesn't output at all.

[BUG] Stylesheets not removed from DOM

Hi Siggy!

First of all many thanks for the great plugin! I wanted to develop it myself but yours is actually (almost) perfect to achieve the best performance.

I found a small bug that causes the removal of some stylesheets to fail. The plugin replaces & and & however, some stylesheets contain &.

Line 237 in file google-webfont-optimizer.php

# Minor fix for DOMDocument "fixes"
$fontLink = str_ireplace("&", "&", $fontLink);
# line 237
$fontLink = str_ireplace("&", "(&|&)", $fontLink);

# replace by
$fontLink = str_ireplace("&", "(&|&|&)", $fontLink);

Best Regards,
Jan Jaap

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.