Preloading images in Nuxt 3 -

  Рет қаралды 12,932

cdruc

cdruc

Күн бұрын

Eliminate glitches by preloading images. Make sure to not over do it though.

Пікірлер: 20
@jaker9007
@jaker9007 Жыл бұрын
I can also suggest replacing v-if with v-show. That way, images will be loaded on background, since, with v-show the DOM is actually rendered, just not shown.
@nclsDesign
@nclsDesign 15 күн бұрын
Skeleton loader is the magic balance between no glitching and no unnecessary network traffic.
@bringbackwindowsphone
@bringbackwindowsphone 6 ай бұрын
Always specify height/width on images too where possible so browsers can prevent CLS
@djenntt
@djenntt 2 ай бұрын
You can also keep things performant and load the image when the user hovers, and if the image is a smaller size, it will definitely load before the user decides to click. If you are worried about it still glitching, you can preset the determined ratio based on the image in the modal. So if it does not show immediately, the modal won't resize on the user.
@yongdev
@yongdev 10 ай бұрын
how about dynamic images
@HAYDERNAJJAR
@HAYDERNAJJAR 20 күн бұрын
i face an issue that after create new product and i wanna to edit after click save all old images gone
@nguyentrunghau8441
@nguyentrunghau8441 11 ай бұрын
With Data from API. You can't using with this ??. It only work with image Static image
@ohiduzzaman_siam
@ohiduzzaman_siam 8 ай бұрын
which theme are you using in Webstorm?
@chaderenyore1748
@chaderenyore1748 Ай бұрын
It doesn't work when deployed to netlify
@vodacbao
@vodacbao 2 ай бұрын
@nested9301
@nested9301 Жыл бұрын
is this will effect initial load performance ?
@cdruc
@cdruc Жыл бұрын
yes, there's an initial load cost - otherwise we'd preload everything 😅
@Rimtay
@Rimtay 6 ай бұрын
Can’t it be lazy preload? With this method in case they do not click the links as soon as the page loads no glitch will appear and initial page load won’t get affected
@piotrjasiulewicz408
@piotrjasiulewicz408 Жыл бұрын
good video, keep it up
@TalhaBalaj
@TalhaBalaj 7 ай бұрын
What font
@jegedeayodeji3306
@jegedeayodeji3306 Жыл бұрын
Can this be replicated with just vue 3 ?
@cdruc
@cdruc Жыл бұрын
Hey, yes! you can with: unhead.unjs.io/setup/vue/installation Btw, this is the exact same package Nuxt 3 uses under the hood 😃
@jegedeayodeji3306
@jegedeayodeji3306 Жыл бұрын
@@cdruc oh brilliant! Thank you 🙏🏽
@j0of
@j0of 11 ай бұрын
what ide?
@cdruc
@cdruc 11 ай бұрын
webstorm
Nuxt Explained
8:33
Awesome
Рет қаралды 27 М.
My Experience With Nuxt 3
18:14
Joseph Montanez
Рет қаралды 4 М.
Modus males sekolah
00:14
fitrop
Рет қаралды 19 МЛН
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 60 МЛН
Vuetify 3 + Nuxt 3 : Vue.js Will Never Be The Same
13:02
Program With Erik
Рет қаралды 46 М.
How to use MongoDB/Mongoose in Nuxt 3 | Nuxt3 Database Integration
16:56
Avoid losing Reactivity in your Vue Application
10:32
Alexander Lichter
Рет қаралды 7 М.
Data Fetching With Nuxt 3
20:31
John Komarnicki
Рет қаралды 32 М.
3 Must Know Tips For Nuxt.js Developers
9:23
Program With Erik
Рет қаралды 9 М.
NEW Folder Structure in Nuxt 4
16:50
Alexander Lichter
Рет қаралды 13 М.
How to use Nuxt Layers to encapsulate your code
17:08
Alexander Lichter
Рет қаралды 9 М.
Why Beautiful Websites Don’t Convert
12:57
Malewicz
Рет қаралды 100 М.
why im NOT hyped for nuxt 4
4:00
LearnVue
Рет қаралды 17 М.
Creating APIs in Nuxt with Daniel Roe
33:33
Treblle
Рет қаралды 12 М.
Modus males sekolah
00:14
fitrop
Рет қаралды 19 МЛН