This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var waiting = setInterval( function () { | |
var nodes = document.querySelectorAll('.inline-svg[class^="icon-"], .inline-svg[class*=" icon-"]'); | |
for ( var i = 0; i < nodes.length; i++ ) { | |
// Pull the background in (this should always be a background image) | |
var background = document.defaultView.getComputedStyle(nodes[i])['background-image']; | |
// Check to see if an element has a background - if so, background has loaded | |
if (background && background !== 'none') { | |
if ( waiting ) clearInterval( waiting ); |
NewerOlder