Skip to main content

All Questions

0 votes
1 answer
1k views

Importing local json data using lazy load in next js

I have a locally stored json in my project, which is an array containing around 200+ items. Example: data.js const data = [ { title: 1 }, { title: 2 }, ... { title: 200 } ]; ...
bhansa's user avatar
  • 7,546
3 votes
0 answers
3k views

Chunk js file failing (404 Not found) for initial load only

I'm trying to implement code splitting using react JS + Next JS to reduce Initial load time of the page. But when I start my UI Service and try to run the webpage, a chunk file is created successfully ...
Sharanya M's user avatar
0 votes
1 answer
3k views

Next/React lazy load not working as expected for components

Hi all I am new in Next/react I am trying to lazy load one component. What my expectation is that component must loads when it is visible in user view port or once a page is fully rendered. Its html ...
Vivek Singh's user avatar