Next.js Performance & Speed Optimization | Episode #3 | Bundle Size & Budget

Поделиться
HTML-код
  • Опубликовано: 29 сен 2024
  • Code: github.com/ben...
    Need a website? Check us out: fabled-web.ca

Комментарии • 14

  • @Ram_Dev
    @Ram_Dev 2 месяца назад +3

    i have never seen this content before, thank you and congratulations!

  • @NeoCoding
    @NeoCoding 5 месяцев назад

    your info is priceless.. thx

  • @mahdifazeli1119
    @mahdifazeli1119 4 дня назад

    ridi

  • @siva-gy9ks
    @siva-gy9ks 2 месяца назад

    In my case when i comlile the application it taking 8sec for 243 modules,and cpu percentage is hitting 100% when i koad the application
    Any way to resolve please suggest🙏🏻🙏🏻🙏🏻
    I have done image optimization,dynamic loading

  • @FabricioEspinozaMora
    @FabricioEspinozaMora Год назад +1

    What is the most optimal way to initialize Firebase in Next.js?

    • @benhaig
      @benhaig  Год назад +1

      I would just use the regular initialization process, just dynamically import the package when you need to so it doesn’t ruin your web vitals as the package is massive👍

    • @FabricioEspinozaMora
      @FabricioEspinozaMora Год назад +1

      I will try it on my current project, thanks for your response. What I do is to create a firebaseInit.js on root and then import/export getAuth, getAnalytics, getFirestore, initialize(config), this is the regular method?@@benhaig

    • @benhaig
      @benhaig  Год назад +2

      Yeah, that's what I mean. Just be careful when you import anything inside of the Firebase npm package in your components. I have managed to get sites to run much faster by just using dynamic imports alone.

  • @thund3rd3v72
    @thund3rd3v72 8 месяцев назад

    Thank you very much!!!

  • @rennan9891
    @rennan9891 10 месяцев назад

    The website my team is building doesn't have a lot of dynamic content, but it has a lot of images that come mostly from Stripe, i don't think using next/dynamic is the better approach, any suggestions? Maybe react memo or using suspense components?

    • @vincentnthomas1
      @vincentnthomas1 5 месяцев назад +1

      Lazy load images, there’s one built in to html

  • @eghazaryan3335
    @eghazaryan3335 11 месяцев назад

    How can I optimize analytics scripts to improve site speed score, as they still slow down the website even with the use of the "afterInteractive" property?

    • @fatihece3359
      @fatihece3359 10 месяцев назад

      Did you find any solution for it @eghazaryan3335

    • @vincentnthomas1
      @vincentnthomas1 5 месяцев назад

      Partytown