added banners preloader

This commit is contained in:
plebbitor
2023-03-05 14:26:40 +01:00
parent 2420908443
commit 6ca67fc775
3 changed files with 21 additions and 4 deletions
+8
View File
@@ -0,0 +1,8 @@
const preloadImages = (imageUrls) => {
imageUrls.forEach((imageUrl) => {
const img = new Image();
img.src = imageUrl;
});
};
export default preloadImages;