Giter Site home page Giter Site logo

codenamey / host-webfonts-locally Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dan0sz/host-webfonts-locally

0.0 0.0 0.0 1.56 MB

OMGF automagically caches the Google Fonts used by your theme/plugins locally. No configuration (or brains) required!

Home Page: https://daan.dev/wordpress/omgf/

Shell 2.15% JavaScript 5.68% PHP 88.63% HTML 0.62% Less 2.92%

host-webfonts-locally's Introduction

OMGF | GDPR Compliant, Faster Google Fonts. Easy.

Github CI codecov WordPress version WordPress Rating WordPress Downloads

OMGF can be downloaded for free without any paid subscription from the official WordPress repository.

OMGF automagically caches the Google Fonts used by your theme/plugins locally. No configuration (or brains) required!

Description

How could using fonts via Google's service possibly run afoul of GDPR? The fact of the matter is that, when a font is requested by the user's browser, their IP is logged by Google and used for analytics. โ€” Lifehacker

Leverage Browser Cache, reduce DNS lookups/requests, reduce Cumulative Layout Shift and make your Google Fonts 100% GDPR compliant with OMGF!

OMGF is written with performance and user-friendliness in mind. It uses the Google Fonts API to automatically cache the fonts your theme and plugins use to minimize DNS requests and speed up your WordPress website.

How Does It Work?

After installing the plugin, OMGF will automatically start looking for Google Fonts whenever a page is requested on your website.

All Google Fonts are listed in the Optimize Local Fonts section of OMGF's settings screen. There, you can choose to:

  • Preload fonts to reduce Cumulative Layout Shift above the fold,
  • Unload fonts that're not used by you, your theme and/or plugins,
  • Set a Fallback Font Stack (OMGF Pro required), to further reduce Cumulative Layout Shift, or
  • Replace (OMGF Pro required) font-families with system fonts to speed up page loading times!

Other Features include

  • Variable Fonts support,
  • Automatically Remove unused subsets to reduce the size of the CSS stylesheet up to 90%!
  • Remove Resource Hints (preload, preconnect, dns-prefetch) pointing to fonts.googleapis.com or fonts.gstatic.com,
  • Ensure text remains visible during webfont load by forcing the font-display attribute to your Google Fonts,
  • Ensure text remains visible during webfont load by forcing the font-display attribute to all your other fonts! (OMGF Pro required),

Additional Features in OMGF Pro

  • Multisite support,
  • "Dig deeper" to find Google Fonts and optimize further. OMGF Pro supports:
    • @font-face and @import statements inside inline <style> blocks,
    • @font-face and @import statements inside local stylesheets loaded by e.g. your theme and/or plugins,
    • @font-face and @import statements inside externally hosted stylesheets loaded by your theme and/or plugins,
    • Web Font Loader (webfont.js),
    • Early Access Google Fonts.
    • Material Icons support.
  • Modify your fonts' src: url() attribute to fully integrate with your configuration,
    • Use this to serve fonts and the stylesheets from your CDN, or
    • To serve fonts from an alternative path (e.g. when you're using Security through Obscurity plugins like WP Hide, etc.), or
    • Set a relative path to easily migrate from development/staging areas to production/live, or
    • Anything you like!

Purchase OMGF Pro | Documentation | Tested Plugins & Themes

Installation

Manually

  1. Download the latest release
  2. From your WordPress administrator area, go to Plugins > Add New
  3. Click Upload Plugin and select the ZIP file you downloaded in step 1
  4. Activate the plugin

From the Wordpress Repository

  1. From your WordPress administrator area, go to Plugins > Add New
  2. Search for 'Daan van den Bergh'
  3. Click the 'Install' button next to OMGF | Host Google Fonts Locally
  4. Click 'Activate'

Frequently Asked Questions

For the FAQ, click here.

Support

For Support Queries, checkout the Support Forum at Wordpress.org

Changelog

Visit the Changelog at Wordpress.org

host-webfonts-locally's People

Contributors

dan0sz avatar tig-daanvandenbergh avatar dann2012 avatar

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.