DEV Community

Discussion on: Better Performance using Dynamic Code Splitting in Gatsby with loadable-components

 
itmayziii profile image
Tommy May III

Sorry for the late reply, this lazyLoad: index > 1 is there mostly for an <Image/> component we have. We only wanted images to lazy load if they were later down the page, so the first module we had would never lazy load images.

Thread Thread
 
suther profile image
Samuel Suther

Can you give a hint about this isServer() function I've asked above this comment?
Thanks a lot in advance

Thread Thread
 
abohannon profile image
Adam Bohannon

I'm curious about this, as well. But I suppose you could just check for the existence of window.