I wanna get sliders data from server with axios, &
after that check if all of the slider images loaded then I show it on the site, Now I did it this way but i wondered is there a better way to do this ? #nuxt #vue
I Mean a better way than this ?
let curImg2 = new Image();
curImg2.src = "imgs/slider2.png";
curImg2.onload = function () {
let curImg3 = new Image();
curImg3.src = "imgs/slider3.png";
curImg3.onload = function () {
}
}