I've made an interesting observation: when I execute the npm run dev
command to start the code, the initial page load takes much longer compared to subsequent page refreshes.
Upon inspecting the network tab in Chrome DevTools, I discovered that the first load is four times slower than the second one.
Initial Load https://i.sstatic.net/GSlPa.png
Subsequent Load https://i.sstatic.net/0jCG4.png
What could be causing this discrepancy? And are there any strategies to improve the loading speed?
Thank you in advance!