Closed pmeenan closed 10 years ago
Should be able to use logic similar to the RUM Speed Index code: https://github.com/WPO-Foundation/RUM-SpeedIndex/blob/master/src/rum-speedindex.js#L86
Awesome, works a treat. You might want to add re.lastIndex = 0; to the RUM script to reset the state of the regex. Otherwise you won't catch elements with repeating spritesheets next to each other.
Should be able to use logic similar to the RUM Speed Index code: https://github.com/WPO-Foundation/RUM-SpeedIndex/blob/master/src/rum-speedindex.js#L86