Skip to content

Commit

Permalink
try another loop method for HTMLCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ressler committed Aug 5, 2024
1 parent 39be9d8 commit 203febd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions _static/uicontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ function optimize_images() {
console.log("Page Images:");
console.log(page_images);

for(let i = 0; i < page_images.length; i++) {
let current_image = page_images[i];

console.log("src: " + current_image.src + ", width: " + current_image.width + ", height: " + current_image.height);
for (image of page_images) {
console.log("src: " + image.src + ", width: " + image.width + ", height: " + image.height);
}

// if(page_images != null && page_images.length > 0) {
Expand Down

0 comments on commit 203febd

Please sign in to comment.