How this INSANELY FAST Next.js app was built

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

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

  • @GoDjMike
    @GoDjMike 19 дней назад +3

    I totally missed this repo getting published- I am SO happy that you did a deep dive 😃

    • @elie2222
      @elie2222  19 дней назад

      Glad you liked it!

  • @ibnurasikh
    @ibnurasikh 22 дня назад +3

    Exactly what I thought! Even back then, I implemented this method for all my WordPress clients. I prefetch whenever I can, except on free sites, news sites, or blogs, where it’s a bit less aggressive than for e-commerce.

  • @prashlovessamosa
    @prashlovessamosa 22 дня назад +1

    thanks I was reading the code this video indeed very helpful.

    • @elie2222
      @elie2222  22 дня назад

      Glad to hear that!

  • @bilimlink
    @bilimlink 23 дня назад +1

    Looks awesome 👍
    Thanks for sharing ❤

  • @normalguy8550
    @normalguy8550 22 дня назад

    Great video! But I was wondering, what video recording software do you use to show your camera and the screen at the same?

    • @elie2222
      @elie2222  22 дня назад +1

      Screen studio. There’s an affiliate link at the bottom of the description!

  • @valostudent6074
    @valostudent6074 23 дня назад +1

    thanks for the breakdown

    • @elie2222
      @elie2222  23 дня назад

      Glad you enjoyed!

  • @mDHARYL
    @mDHARYL 22 дня назад +1

    Wow.😮 Thats awesome

    • @elie2222
      @elie2222  22 дня назад

      Glad you liked it!

  • @an.alphaleonis
    @an.alphaleonis 23 дня назад

    Insightful, love it

    • @elie2222
      @elie2222  23 дня назад

      Glad you enjoyed!

  • @elie2222
    @elie2222  21 день назад

    If you're new here be sure to check out the other videos in the playlist: ruclips.net/p/PLoCD6QJqwk4pdLe_OnhVovqDLu0FidEOO
    And star Inbox Zero on GitHub: github.com/elie222/inbox-zero

  • @abdullahiali-n2u
    @abdullahiali-n2u 23 дня назад

    wow amazing engineering

    • @elie2222
      @elie2222  23 дня назад

      Ya. Very cool how they built it

  • @lovrozagar3729
    @lovrozagar3729 23 дня назад +1

    This is amazing

    • @elie2222
      @elie2222  23 дня назад

      Glad you like it!

  • @pequod4557
    @pequod4557 23 дня назад +2

    I think the way they prefetch on mouse enter events is a highly unnecessary optimization that will cook your server for no reason

    • @elie2222
      @elie2222  23 дня назад +2

      The benefit is clear in that it avoids the image flash. Whether that’s important is up to you.
      The serverless endpoints aren’t going to be cooked. They’ll handle this just fine. There’s some cost to it but that could be minimal dependent on the business value driven. If it leads to an extra 5% in sales or a few dollars in revenue then it’s worth paying the extra cents to make the extra server calls.
      There are studies by Amazon that show that extra speed leads to increased sales.

    • @ibnurasikh
      @ibnurasikh 22 дня назад +1

      These days, most e-commerce sites handle their assets with a CDN, so it won’t put any strain on your server.

  • @StingSting844
    @StingSting844 23 дня назад +4

    This is incredibly bad for multiple reasons. The original site is making a total of 154 requests for all of the homepage content and most of them on demand. But this bullshit implementation makes thousands of prefetch requests that it's ridiculous and it feels like a mockery. I'm sure they think we are complete fools who'll believe anything they say!

    • @elie2222
      @elie2222  22 дня назад +2

      If you use next/link it defaults to prefetch. This is going a step further and loads images. If you don’t care about the extra performance then don’t do it. It’s a demo. No one telling you that you have to implement your site in the same way. But if you want extra speed this is a way to do it.

    • @ibnurasikh
      @ibnurasikh 22 дня назад +2

      It’s not just bad for bandwidth, but for an e-commerce site, where conversion rates are usually higher than on a regular blog or freebie site, it’s acceptable. We’ve seen a big drop when our and client's sites slows down, our CTR once fell to 30%, when it’s usually around 80-90%, never dropping below 70%. So, load speed is crucial. Even after implementing these methods, not just for Next.js sites but for most of our clients, there’s been no noticeable increase in bandwidth costs. Try working as a digital marketer, and you’ll see how cheap bandwidth is compared to the impact on CTR and average session duration.

    • @StingSting844
      @StingSting844 18 дней назад

      @@elie2222 no you are not getting my point. There is no argument against prefetching assets to speed up your site. But what they have done is overload everything to the max and claim speed. The original site is in production and it's that fast to interact. Nextjs can do well similarly although slightly heavier on Js. But this "demo" is a mockery of the attention to detail they've done in the original site. You might as well load the entire database in the browser and claim 0ms network latency.

  • @saber8387
    @saber8387 23 дня назад +1

    my internet is so slow it loads on both of these site

  • @rtorcato
    @rtorcato 21 день назад

    all this image preloading doesn't work on mobile where you have no hover event

    • @elie2222
      @elie2222  21 день назад +1

      Good point. You could use onTouchStart, or when the a link moves into the viewport, you could preload the images.
      Or you could just not optimize on mobile. Pages would still load fine.

    • @UnknownPerson-wg1hw
      @UnknownPerson-wg1hw 19 дней назад +1

      it still has prefetch when a next link comes on view