mercredi 16 janvier 2019

Next.js Cypress Script Loading Time High TTFB (> 2 Seconds)

While running Cypress, Next.js takes significant time to load the following scripts

http://localhost:3000/_next/static/development/pages/model.js http://localhost:3000/_next/webpack-hmr

& it's blocking the beginning of my graphql query & data loading.

Cypress doesn't start running until about 2 seconds of page loading. I'm using Cypress network mocks, so it's never actually hitting the graphQL server. But that doesn't matter because the network request doesn't even start till later.

Loading

Aucun commentaire:

Enregistrer un commentaire