#540kb js file, how to figure out where its coming from?

1 messages · Page 1 of 1 (latest)

oak snow
#

I'm left with a 540kb .js file (gzipped from 1.4mb).

I'm truly puzzeled where the size is coming from? How should I go about figuring out why the file is so large?

wide willow
#

Do you use any libraries? UI frameworks?

oak snow
#

Yes Im using react, but only on certain parts of the site, namely /dashboard/

I have a hunch its Clerk... By adding that they've forced a lot of stuff to be pushed into the JS that gets loaded on every page.

Wondering if theres a simple way to figure out which files the final js was compiled from.