You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building my first NextJs app with Strapi on the back-end. It is fully server-rendered (at least for now). The app is a SPA that will have some modal windows showing different projects. Each modal will have a bunch of pics (gallery slideshow) and some text. My question is what is the proper approach to do it?
i think prerendering all the images for all the modals is definitely a bad idea
can/should i fetch images on modal open? any library suggestions for this case?
maybe there is some lazy loading option available in NextJs already that i should use?
What i want to achieve is: when a modal is opened it instantly shows the first image (it was already fetched and ready to use) and starts fetching all the rest of the project's images
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building my first NextJs app with Strapi on the back-end. It is fully server-rendered (at least for now). The app is a SPA that will have some modal windows showing different projects. Each modal will have a bunch of pics (gallery slideshow) and some text. My question is what is the proper approach to do it?
What i want to achieve is: when a modal is opened it instantly shows the first image (it was already fetched and ready to use) and starts fetching all the rest of the project's images
Beta Was this translation helpful? Give feedback.
All reactions