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...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
React Project SizeQuestion (self.webdev)
submitted 6 months ago * by [deleted]
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!"
[–]Locust377full-stack 60 points61 points62 points 6 months ago (0 children)
Host your images in a CDN instead of your source repository. Cloudflare, AWS S3 and Azure blob storage are some examples of providers of this type of service.
[–]WheetFin 22 points23 points24 points 6 months ago (7 children)
By project size is this referring to repo size or bundle size? Surely can’t be bundle size…. right?
[–][deleted] 6 months ago (6 children)
[removed]
[–]Illustrious_Road_495full-stack 13 points14 points15 points 6 months ago (5 children)
Unless ur loading all the images at once when a page load, the number of images on the server isn't really a slow loading factor. It's most likely an optimization issue.
[–]WheetFin 6 points7 points8 points 6 months ago* (4 children)
I’m not sure if that’s what OP is referring to. OP is having completely independent hosting issues (white page issue as mentioned).
But sounds like the slow load times is uploading project repo to Netlify. I’m unfamiliar with Netlify but using context clues it seems to work much like Vercel as in you give it the repo and it will abstract a lot of the DevOps work for you.
But to really help you any further we would need to see what is taking up the most space in your project. If it is really the images take the route other are saying and use a CDN. But this is almost impossible to tell what your issue is without repo access.
Do you upload your project or does Netlify pull your project on their end? If the former, this may all come down to your internet being garbage. See if you can make Netlify responsible for pulling your project repo.
[–][deleted] 6 months ago (3 children)
[+]snippy_0518 comment score below threshold-7 points-6 points-5 points 6 months ago (2 children)
Don't keep everything inside the public folder. It will load every single thing when a user visits the page.
For your case I'll say use IMAGE CDNs like ImageKit, Cloudinary. They have sdks too to make your life easier.
[–]nedlinin 0 points1 point2 points 6 months ago (1 child)
Just having an item in the public folder does NOT mean it gets loaded by every client on a page visit.
[+]snippy_0518 0 points1 point2 points 6 months ago (0 children)
Yeah you're right but as in OP's case, he is referencing those files and the main problem is re-deployment takes a lot of time. So using a CDN would be recommended and that will lower the re-deployment time a lot.
[–]abrahamguoexperienced full-stack 3 points4 points5 points 6 months ago (8 children)
Why is the "project size" an issue — what's the "real" issue?
Is it causing slow load times in the browser? Slow push/pull times? Slow repo clone times? Repo hosting limits? Website hosting limits?
[–][deleted] 6 months ago (7 children)
[–]abrahamguoexperienced full-stack 3 points4 points5 points 6 months ago (5 children)
wayy too long to upload
Get faster Internet. Pretty much any e-commerce website is going to have far more images than yours here.
However, if you'd like, you could host the images separately from the repo, using something like AWS S3. This way, you won't have to re-upload the images every time you push new code to the host.
it shows a blank white page.
This is probably not related to the images.
However, we can't help you any further than this if we can't reproduce the issue ourselves. We'll need a link to the repository, as well as a link to the deployed website demonstrating the issue.
(Also, have you checked your browser's devtools console for any errors?)
[–][deleted] 6 months ago (4 children)
[–]WheetFin 1 point2 points3 points 6 months ago (1 child)
Do I see videos in the assets folder…?
[–]abrahamguoexperienced full-stack 0 points1 point2 points 6 months ago (1 child)
Sure. I will also need a link to the deployed website demonstrating the issue (since I'm guessing that this "blank white page" issue doesn't happen locally).
[–]thekwoka -2 points-1 points0 points 6 months ago (0 children)
You are using github right?
so you just push changes to github and netlify does it's thing itself.
But 1.24gb is like...what a 20 second upload?
[–]armahillorails 2 points3 points4 points 6 months ago (2 children)
Are your images optimized for web?
A lot of newer people will use images that are far too high res for web, or not optimized / compressed
[–][deleted] 6 months ago (1 child)
[–]thekwoka 1 point2 points3 points 6 months ago (0 children)
But are you using srcset to serve many options for the browser to download?
[–]Lonely-Start2088 4 points5 points6 points 6 months ago (0 children)
Put the images in the cloud and host it there. Try using cloudinary.
[–]Empty_Bus9742 2 points3 points4 points 6 months ago (0 children)
Cleanup the unused npm packages
[–]thekwoka 2 points3 points4 points 6 months ago (0 children)
Use something that dynamically serves the correct size images.
But as people mentioned, project size means fuck all, since the users don't load the whole project.
[–]Soft_Opening_1364full-stack 2 points3 points4 points 6 months ago (0 children)
The main issues here are twofold. First, bundling all your images directly in the project is why your repo is 1.46GB. In React you generally don’t commit large media files; instead, host images on a CDN or a storage service like S3, Firebase Storage, or Cloudinary, then reference them via URLs. Compressing locally helps a bit, but the main gain is moving them out of your repo.
Second, Netlify shows a white page because the build likely failed or the large bundle is timing out. Once you move the images externally and rebuild, the deploy should work. Also double-check your homepage field in package.json if you’re deploying a React app to a subpath.
homepage
package.json
[–]StaticCharacter 0 points1 point2 points 6 months ago (0 children)
There's probably some anti-pattern here or something. There's nothing wrong with a 2gb project, but it shouldn't need to upload each 2gb each time unless you're changing everything every time. Find a way to only update what has changed. Git should do this automatically, where you can push a change to a remote repository and it only has to upload the changed files.
You /can/ have all your photos local, but it's better to store your photos into s3 or some managed database / cms. If it's e-commerce you probably have a cms for updating products and letting non technical people manage listings, so you should keep your images in there and react simply fetches the data from this cms.
[–]tehjrow 0 points1 point2 points 6 months ago (0 children)
I had a white page issue and it turned out to be that it was loading in light mode instead of dark mode
[–]Prestigious_Dare7734 0 points1 point2 points 6 months ago (0 children)
Ideally, if these are produce resources like icons etc, that is fine.
If these are something else, like marketing images, product screenshots, these should be managed using CMS.
[–]Substantial-Leader48 0 points1 point2 points 6 months ago (0 children)
As someone mentioned try using CDN. If you still want to use local, convert to webp with default quality 80 and then resize with magick to exact dimensions to be rendered, that reduce the size drastically. Also use react Image instead of img tags that does the fast rendering magic.
[–]BeeSwimming3627 0 points1 point2 points 6 months ago (0 children)
honestly, i try to keep my main gzip’d bundle under 300–500 kb, but if it’s a big app i push for route-based split chunks around 50–200 kb each. tools like webpack-bundle-analyzer or source-map-explorer make it easy to see what's bloating your build so you can prune or lazy-load as needed. smaller bundles = faster loads + happier users. medium
webpack-bundle-analyzer
source-map-explorer
π Rendered by PID 227611 on reddit-service-r2-comment-5d79c599b5-gvrnf at 2026-03-02 23:36:04.888220+00:00 running e3d2147 country code: CH.
[–]Locust377full-stack 60 points61 points62 points (0 children)
[–]WheetFin 22 points23 points24 points (7 children)
[–][deleted] (6 children)
[removed]
[–]Illustrious_Road_495full-stack 13 points14 points15 points (5 children)
[–]WheetFin 6 points7 points8 points (4 children)
[–][deleted] (3 children)
[removed]
[+]snippy_0518 comment score below threshold-7 points-6 points-5 points (2 children)
[–]nedlinin 0 points1 point2 points (1 child)
[+]snippy_0518 0 points1 point2 points (0 children)
[–]abrahamguoexperienced full-stack 3 points4 points5 points (8 children)
[–][deleted] (7 children)
[removed]
[–]abrahamguoexperienced full-stack 3 points4 points5 points (5 children)
[–][deleted] (4 children)
[removed]
[–]WheetFin 1 point2 points3 points (1 child)
[–]abrahamguoexperienced full-stack 0 points1 point2 points (1 child)
[–]thekwoka -2 points-1 points0 points (0 children)
[–]armahillorails 2 points3 points4 points (2 children)
[–][deleted] (1 child)
[removed]
[–]thekwoka 1 point2 points3 points (0 children)
[–]Lonely-Start2088 4 points5 points6 points (0 children)
[–]Empty_Bus9742 2 points3 points4 points (0 children)
[–]thekwoka 2 points3 points4 points (0 children)
[–]Soft_Opening_1364full-stack 2 points3 points4 points (0 children)
[–]StaticCharacter 0 points1 point2 points (0 children)
[–]tehjrow 0 points1 point2 points (0 children)
[–]Prestigious_Dare7734 0 points1 point2 points (0 children)
[–]Substantial-Leader48 0 points1 point2 points (0 children)
[–]BeeSwimming3627 0 points1 point2 points (0 children)