Significantly Improve Page Loads Using Laravel Prefetching

Поделиться
HTML-код
  • Опубликовано: 9 окт 2024
  • When it comes to single-page apps, we often have to choose between shipping a single large bundle, or reaching for code splitting. There are pros and cons to each option. Generally, this reduces to whether you prefer that the user pay the download toll up front, or spread it out from page to page. However, there's now a way to get the best of both worlds!
    Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.
    Laracasts: laracasts.com
    Laracasts Twitter: / laracasts
    Jeffrey Way Twitter: / jeffrey_way

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

  • @snipohyper285
    @snipohyper285 18 часов назад +4

    thanks to u and your laracast laravel video, i expanded and made a todo list, Event planner and task management application but im now interested in making a E-commerce website. Any chances of a course from you on this topic .thanks in advance ❣

  • @DanielGamboaStewart
    @DanielGamboaStewart 9 часов назад

    That was really cool I would love a more detailed view of how you could take different strategies either this

  • @jameshamann465
    @jameshamann465 17 часов назад +2

    It's so funny to me that we measure tradeoffs within milliseconds nowadays. Cool vid.

  • @chiagozieokafor5512
    @chiagozieokafor5512 13 часов назад

    Super Awesome 🔥, thanks for sharing 👏

  • @nehabiexp97
    @nehabiexp97 18 часов назад

    very nice

  • @ahmedemad1020
    @ahmedemad1020 17 часов назад +1

    I was wondering why did you set the concurrency to 3 ?

    • @julienSibille
      @julienSibille 15 часов назад +2

      It seems to be the value set by default in the Illuminate/Foundation/Vite (protected $prefetchConcurrently = 3;) but if you don't specify any value the strategy will be agressive instead of the nice waterfall he shows us

    • @isaachatilima
      @isaachatilima 14 часов назад +2

      Also seems that Vite::prefetch(concurrency: 3); is already set in Providers/AppServiceProvider.php at least for my fresh app.

    • @julienSibille
      @julienSibille 6 часов назад

      @@isaachatilima Ok thanks for this tip

  • @mokhosh
    @mokhosh 14 часов назад

    Build or no build?

  • @shakiltech1
    @shakiltech1 18 часов назад

    First Comment 🐱