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
Hey, I'm using sentry for error monitoring in my next.js application. Importing the init function from sentry is quite expensive (~46kb). This has caused my First Load JS metric to increase quite tremendously. I would like to delay loading sentry after the site is interactive, by loading it in a Script tag, instead of using the client/server configs that are generated. I can't find any docs on this though. Has anyone does this before? Or has anyone found a way to use Sentry without the heavy initial JS tax, causing the first page visited to initally load slower?
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
-
Hey, I'm using sentry for error monitoring in my
next.js
application. Importing theinit
function from sentry is quite expensive (~46kb). This has caused my First Load JS metric to increase quite tremendously. I would like to delay loading sentry after the site is interactive, by loading it in aScript
tag, instead of using the client/server configs that are generated. I can't find any docs on this though. Has anyone does this before? Or has anyone found a way to use Sentry without the heavy initial JS tax, causing the first page visited to initally load slower?Beta Was this translation helpful? Give feedback.
All reactions