Skip to content

Commit

Permalink
use bigger image
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaIT committed Apr 12, 2024
1 parent fa5ceba commit 9a8c965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Binary file added static/heavy-page/50kb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions static/heavy-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@

#images > div {
float: left;
width: 20px;
height: 20px;
width: 30px;
height: 30px;
margin: 2px;
overflow: hidden;
}
Expand All @@ -38,7 +38,8 @@
<div id="images" class="content"></div>

<script>
const IMAGE_SIZE = 9942;
const IMAGE_SIZE = 52357;
const IMAGE_NAME = '50kb.jpg';

async function generate() {
const template = document.getElementById('template').content.firstElementChild;
Expand All @@ -51,7 +52,7 @@
console.log(`Adding ${imagesCount} images`);
let html = '';
for (let i = 0; i < imagesCount; i++) {
html += `<div><img src="10kb.png?no-cache=${i}"></div>`
html += `<div><img src="${IMAGE_NAME}?no-cache=${i}"></div>`
}
images.innerHTML = html;

Expand Down

0 comments on commit 9a8c965

Please sign in to comment.