Deferring Data + Streaming in Remix

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • Learn how to reduce your website's load time by deferring and streaming data using defer, Suspense, and Await.
    Play with this demo 👉 remix-movies.pages.dev/
    Checkout the code 👉 github.com/remix-run/example-...
    00:00 - Project overview
    00:45 - Previewing the deployed site
    01:45 - Real-world profiling with WebPageTest
    02:46 - What are we waiting on?
    03:55 - Using defer to improve the page speed
    07:32 - Previewing the site with deferred data
    10:21 - Deferred explained
    12:06 - Real-world profiling with deferred data
    Learn more at remix.run
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 35

  • @ibrahimmohammed3484
    @ibrahimmohammed3484 6 หลายเดือนก่อน +38

    i do owe this framework an apology

  • @DEV_XO
    @DEV_XO 6 หลายเดือนก่อน +11

    These videos are so good. Ryan is such a great teacher.

  • @sreeharsharaveendra289
    @sreeharsharaveendra289 13 วันที่ผ่านมา

    I have been learning about reactive programming on the backend, seeing even-driven non-waterfall approach in remix is amazing

  • @yomaru_1999
    @yomaru_1999 6 หลายเดือนก่อน

    Very cool demo. Its explanation is so clear

  • @AlexBlack-xz8hp
    @AlexBlack-xz8hp 5 หลายเดือนก่อน

    This is really cool! Thanks for posting.

  • @NunoCostapt
    @NunoCostapt 6 หลายเดือนก่อน

    Amazing as usually!

  • @mateuszbuskiewicz2115
    @mateuszbuskiewicz2115 6 หลายเดือนก่อน

    This API is so brilliant. I love it.

  • @jly_dev
    @jly_dev 6 หลายเดือนก่อน +1

    I know it's an escape hatch, but loader context is great ❤

  • @claus4tw
    @claus4tw 6 หลายเดือนก่อน

    How did you get these breadcrumbs and move the close window row into the top top bar?

  • @StingSting844
    @StingSting844 6 หลายเดือนก่อน +1

    Special thanks for doing the explainer videos in just javascript and not TS. Less overhead!

  • @SikarinPunsawat
    @SikarinPunsawat หลายเดือนก่อน

    Defer still good for SEO ?
    I was try it and what in pagesource it seem that show loading... component

  • @codewithnws3544
    @codewithnws3544 6 หลายเดือนก่อน

    how do i add the type saftey like why don't i am getting suggestion for the env ? in the context and to the particular schema?

  • @IllusionIRL
    @IllusionIRL 6 หลายเดือนก่อน

    i wish at my work there were using remix lmao.
    How can we reproduce the defer ? it is any way to do it ?
    I love the videos, thanks for that. great format, short and really friendly

  • @user-kt1iz4vc3x
    @user-kt1iz4vc3x 6 หลายเดือนก่อน

    hi ryan, I'm learning remix and a doubt came up, since I've seen that in several demos you disable javascript, do you think it should be a goal that any page should work without js? I've seen myself trying to get the same functionality in both scenarios but I'm not sure if it makes sense, I would like to know what you think. thanks!

    • @JacobGextrem
      @JacobGextrem 6 หลายเดือนก่อน

      Yes and no. Barely any user disables JavaScript today; however, optimizing for "before JS loads" makes totally sense. E.g. imagine you're on a train and the internet is suuper slow - should the slow JS block you from submitting a form, clicking a link, ...? Probably not. So making sure things work before JS loads enhances user experience for users with slow internet and/or slow devices.

  • @ronindevninja
    @ronindevninja 2 หลายเดือนก่อน

    thanks to makes me trust on react again

  • @arewa_coder
    @arewa_coder 6 หลายเดือนก่อน +4

    Can you do a video on integrating remix with an external backend api with features like authentication?

    • @BradWilliamsDFW
      @BradWilliamsDFW 6 หลายเดือนก่อน

      Look at the Remix Stacks. Several of them have authentication with various database services.

  • @apidas
    @apidas 6 หลายเดือนก่อน

    very cool, and then they said, server rendering should have all the data streamed in the html already :)

  • @arewa_coder
    @arewa_coder 6 หลายเดือนก่อน +2

    Nice video Ryan 👍 Can you get thesame effect with an external backend service??

    • @twitchizle
      @twitchizle 6 หลายเดือนก่อน

      yes, i am using tmdb api with defer

    • @soywarmon
      @soywarmon 6 หลายเดือนก่อน +3

      You can defer any promise. As long as that service is called through a promise (like a fetch request) defer it

  • @sergioccarneiro
    @sergioccarneiro 6 หลายเดือนก่อน

    Cloudflare, nice!

  • @Augustine_354
    @Augustine_354 3 หลายเดือนก่อน +1

    What code editor is it?

    • @CostGranda
      @CostGranda 2 หลายเดือนก่อน

      VS Code, but not sure about the config

  • @6qat
    @6qat 6 หลายเดือนก่อน

    Is "defer" only available for Cloudfare?

    • @Remix-Run
      @Remix-Run  6 หลายเดือนก่อน

      Nope! Your host just needs to provide streaming. From the docs
      "Ensure your hosting provider supports streaming, not all of them do. If your responses don't seem to stream, this might be the cause."

    • @rnwonder107
      @rnwonder107 3 หลายเดือนก่อน

      Can you address the time out issue we are getting with defer in your github issues? We can't use this feature because of it ​@Remix-Run

  • @willsmith4140
    @willsmith4140 6 หลายเดือนก่อน

    wish i could use remix in react native/expo

  • @nonefvnfvnjnjnjevjenjvonej3384
    @nonefvnfvnjnjnjevjenjvonej3384 6 หลายเดือนก่อน

    remix being bought be a tier 2 tech company like shopify has made it lose a lot of steam. should have stayed independent.