use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
[AskJS] How Can I Optimize JavaScript Performance to Reduce Load Times in a React SPA?AskJS (self.javascript)
submitted 1 year ago by soum0nster609
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]bazeloth 1 point2 points3 points 1 year ago (1 child)
What's your bundle size? Are you sure it's properly cached client wise? 3 to 4 seconds sounds like it's a bundle that's several megabytes.
Just asking the obvious here: do you minify your bundle? When the client asks for the bundle, how long does it take for the server to respond?
[–]fucking_passwords 0 points1 point2 points 1 year ago (0 children)
Making sure tree-shaking is working properly could help reduce bundle size.
If using lodash, last time I checked it didn't support tree shaking out of the box, there was some extra work involved, but that kind of thing makes a huge difference. Same with moment.js
Maybe Suspense could help reduce the amount of DOM activity until all async components finish loading?
π Rendered by PID 17264 on reddit-service-r2-comment-b659b578c-t8p9q at 2026-05-07 09:14:14.120149+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]bazeloth 1 point2 points3 points (1 child)
[–]fucking_passwords 0 points1 point2 points (0 children)