Created
February 4, 2014 07:31
-
-
Save commuterjoy/8799480 to your computer and use it in GitHub Desktop.
load test images
This file contains hidden or 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
[].slice.call(document.querySelectorAll('img[src^="http://static"]')).forEach(function (img) { | |
var w = Math.round(Math.random() * (460 - 200) + 200), | |
path = img.src.replace('static.guim', 'i.guim') + '?width='+w+'&height=-&quality=95'; | |
new Image().src = path; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment