zeman / perfmap

Front-end performance heatmap bookmarklet.
3.79k stars 126 forks source link

Add support for css background images #1

Closed pmeenan closed 10 years ago

pmeenan commented 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

zeman commented 10 years ago

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.