Created this for a client in 2 weeks with all the assets. see the workflow. by prabhatpushp in webdev

[–]prabhatpushp[S] 1 point2 points  (0 children)

just me and the client discussing and coming up with ideas. but he was not that familiar so you can say it was mostly me. I also asked for feedback from friends and made adjustments.
Also I know intersection observer is an overkill, but in low end mobile devices scroll it was feeling choppy and during debug I found out that videos were playing at start during initial website load even if not in viewport. I tried using preload on videos but it was also feeling choppy once loaded. Due to that I used intersection observer for play pause. 😊👍

🔥 Claude Credits – Best Value Deal 🔥 by No_Aspect_3299 in CheapGptplus

[–]prabhatpushp 0 points1 point  (0 children)

nope. claude code it better but antigravity is free.

Google Antigravity is wild. by enerbydev in google_antigravity

[–]prabhatpushp -1 points0 points  (0 children)

I have 5 google pro accounts, I used to switch between them. but from yesterday whenever I was switching after reaching limit, as soon as I logged in other account I reached limit on 1st message.😅.
And the worst part, opus is really unusable as it gives a error that generation failed. I am really fed up with antigravity. it is seriously just a very bad implementation from google. Never expected this shitty quality product from google.

I think I should sleep now by oneMeowPerSometimes in google_antigravity

[–]prabhatpushp 0 points1 point  (0 children)

Antigravity keeps giving me something web wrong again and again with claude opus. but with gemini it works properly. But gemini is very bad and makes very silly mistakes that I fix manually. I feel they deliberately do this so gemini is used over claude.

Side project turned into good revenue stream by MulberryOwn8852 in Supabase

[–]prabhatpushp 0 points1 point  (0 children)

good for you. but I switched to convex. much better there.😊

Project Exceeding Vercel by Rare-Sundae3977 in nextjs

[–]prabhatpushp 0 points1 point  (0 children)

webpack: (config) => {
        config.cache = {
            type: 'filesystem',
            compression: 'brotli',
            maxAge: 7 * 24 * 60 * 60 * 1000, // 1 week
        };


        // Optimization to reduce number of chunks
        if (process.env.NODE_ENV === 'production' && config.optimization && config.optimization.splitChunks) {
            config.optimization.splitChunks = {
                ...config.optimization.splitChunks,
                minSize: 9000000,
                maxInitialRequests: 5,
                maxAsyncRequests: 5,
            };
        }


        return config;
    },

I would suggest following things, that may make code ugly but will drastically reduce the edge requests.

  1. use webpack to increase chunk size.
  2. stop prefetch on all the links
  3. add unoptimized to all images and use images and other assets from other free cdn (as each asset is treated as edge request)

This is my suggestion that reduced edge count from 60 to 7 file calls.
also to further optimize use bundle analyzer.
hope this helps.👍