Skip to content

Highlights Parts of the Page Where Specific WebFonts are Used

Notifications You must be signed in to change notification settings

paulcalvano/webfont-usage-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

webfont-usage-analyzer

Highlight Parts of the Page Where Specific WebFonts are Used

This bookmarklet parses CSS, Resource Timing and DOM to associate WebFont URLs with FontStacks. Real more about it in this blog post

Based on work from here.

To use,

  1. You need to disable CORS in a new browser session in order for the script to be able to access cssRules. This can be done by using the --disable-web-security flag in Chrome. It should go without saying, but you should only do this for testing and close the insecure browser session once you are done! (command line examples for different OS's are here)

  2. paste following into the into the JS Console or create a bookmarklet:

var script = document.createElement('script'); script.src='https://cdn.jsdelivr.net/gh/paulcalvano/webfont-usage-analyzer@master/Font_Analysis.js'; document.body.appendChild(script);

About

Highlights Parts of the Page Where Specific WebFonts are Used

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages