Skip to content

bjankord/icon-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

icon-tests

This repo contains various test cases related to displaying icons.

The icons used for the test come from Icomoon's free icon set. This icon set includes 491 icons. I've decided to use Icomoon's free set as they offer an svg sprite of the icons along with font icons.

Contributions welcome, feel free to open an issue with your ideas.

SVG Tests

SVG Test 1

  • Inline svg sprite at top of body
  • SVG use xlink:href point to symbols in the svg sprite

SVG Test 2

  • Inline script at end of the body to ajax load inline svg sprite at top of body
  • SVG use xlink:href point to symbols in the svg sprite

SVG Test 3

  • Inline script at end of the body to ajax load inline svg sprite at top of body
  • SVG use xlink:href point to symbols in the svg sprite
  • Noscript element with the SVG sprite markup inside of it (handles no-js case)
  • SVG use xlink:href point to symbols in the svg sprite

SVG Test 4

  • SVG sprite loaded in object element at top of body
  • Inline script at end of the body to replace the object with the SVG sprite
  • SVG use xlink:href point to symbols in the svg sprite

SVG Test 5

  • External use xlink:href
  • SVG use xlink:href point to symbols in the svg sprite

SVG Test 6

  • Inline script in the head to ajax load inline svg sprite at top of body
  • SVG use xlink:href point to symbols in the svg sprite
  • Noscript element with the SVG sprite markup inside of it (handles no-js case)
  • SVG use xlink:href point to symbols in the svg sprite (Same as test 3, though inline script has been moved to the head)

SVG Test 7

  • Inline script in the head to add a script tag to ajax the sprite into the head
  • SVG use xlink:href point to symbols in the svg sprite
  • Noscript element with the SVG sprite markup inside of it (handles no-js case)
  • SVG use xlink:href point to symbols in the svg sprite (Same as test 7, though inline JS adds a script tag to load in the ajax JS rather than include the ajax in the inline script block)

SVG Test 8

  • Inline every SVG

SVG Test 9

  • External use svg sprite
  • SVG4Everybody.js polyfill

SVG Test 10

  • External use svg sprite
  • svgxuse.js polyfill

SVG Test 11

  • Same as test 1
  • SVG files have been run through SVGO, then grunt-svgstore to create sprite
  • HTML file has been minified

SVG Test 12

  • Same as test 2
  • SVG files have been run through SVGO, then grunt-svgstore to create sprite
  • HTML file has been minified

SVG Test 13

  • Same as test 3
  • SVG files have been run through SVGO, then grunt-svgstore to create sprite
  • HTML file has been minified

SVG Test 14

  • Same as test 4
  • SVG files have been run through SVGO, then grunt-svgstore to create sprite
  • HTML file has been minified

SVG Test 15

  • Same as test 5
  • SVG files have been run through SVGO, then grunt-svgstore to create sprite
  • HTML file has been minified

SVG Test 16

  • Same as test 6
  • SVG files have been run through SVGO, then grunt-svgstore to create sprite
  • HTML file has been minified

SVG Test 17

  • Same as test 7
  • SVG files have been run through SVGO, then grunt-svgstore to create sprite
  • HTML file has been minified

SVG Test 18

  • Same as test 8
  • SVG files have been run through SVGO, then inlined into page
  • HTML file has been minified

SVG Test 19

  • Same as test 9
  • SVG files have been run through SVGO, then grunt-svgstore to create sprite
  • HTML file has been minified

SVG Test 20

  • Same as test 10
  • SVG files have been run through SVGO, then grunt-svgstore to create sprite
  • HTML file has been minified

====

Font Tests

Font Test 1

This test includes a loading the icons via webfont. The test CSS includes reference to ttf and woff fonts.

Font Test 2

  • Same as test 1
  • HTML file has been minified
  • CSS file has been minified

About

Misc. icon perf tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages