Skip to content

Commit

Permalink
🎨 use Picsum.photos, replace lorempixel
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Jan 2, 2018
1 parent b0bfc1f commit 2eafc07
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions sandbox/progress/progress.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ function getImageItem() {
// 10% chance of broken image src
// random parameter to prevent cached images
img.src = rando < 100 ? '//foo/broken-' + rando + '.jpg' :
// use lorempixel for great random images
'//lorempixel.com/' + width + '/' + height + '/' + '?' + rando;
// use picsum for great random images
'https://picsum.photos/' + width + '/' + height + '/' + '?random';
item.appendChild( img );
return item;
}
Expand Down
2 changes: 1 addition & 1 deletion test/css/tests.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ img {
background:
url("http://i.imgur.com/ZAVN3.png"),
url('http://i.imgur.com/6UdOxeB.png') bottom right,
url(http://lorempixel.com/601/401/nature);
url(https://picsum.photos/601/401/?random);
background-size: cover;
}

Expand Down
4 changes: 2 additions & 2 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ <h2>background</h2>
<div class="bg-box multi"></div>
<div class="bg-box blue"></div>
<div class="bg-box gulls">
<img src="http://lorempixel.com/80/80/nature" />
<img src="http://lorempixel.com/81/81/nature" />
<img src="https://picsum.photos/400/300/?random" />
<img src="https://picsum.photos/800/600/?random" />
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions test/unit/non-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ QUnit.test( 'dismiss non-element nodes', function( assert ) {
var $ = window.jQuery;
var done = assert.async( 2 );

$(' <img src="http://lorempixel.com/401/301/" /> <img src="http://lorempixel.com/402/302/" /> ')
$(' <img src="https://picsum.photos/401/301/?random" /> <img src="https://picsum.photos/402/302/?random" /> ')
.imagesLoaded(function() {
assert.ok( true, 'elements from jQuery string ok' );
done();
Expand All @@ -13,7 +13,7 @@ QUnit.test( 'dismiss non-element nodes', function( assert ) {
// test fragment
var frag = document.createDocumentFragment();
var img = new Image();
img.src = 'http://lorempixel.com/403/303/';
img.src = 'https://picsum.photos/403/303/?random';
frag.appendChild( img );
var imgLoad = imagesLoaded( frag, function() {
assert.ok( true, 'document fragment ok' );
Expand Down

0 comments on commit 2eafc07

Please sign in to comment.