Skip to content

Commit

Permalink
preload image
Browse files Browse the repository at this point in the history
  • Loading branch information
sugoides committed Feb 13, 2024
1 parent bdfb532 commit f73fb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion will-you-be-my-valentine/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let noCount = 0;

function preloadImages() {
// Preload images
const preloadedImages = [`img/cat-yes.jpg`];
const preloadedImages = [Image.src=`img/cat-yes.jpg`];



Expand Down

0 comments on commit f73fb58

Please sign in to comment.