MUCH BETTER Performance with Astro Server Islands

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

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

  • @AnthonyCandaele
    @AnthonyCandaele Месяц назад

    Thanks for this tutorial, can't wait for the dashboard tutorial.

  • @larsh5853
    @larsh5853 Месяц назад

    Absolutely great idea with a video showing how to develop the dashboard with some sidebar menu, crud, data tables, etc. 👍👍 Very very limited documentation out there on how to use Astro to develop more interactive web apps.

  • @himbary
    @himbary 28 дней назад

    This seems to be similar to Nextjs partial static rendering correct?

  • @emanuelkovacs4459
    @emanuelkovacs4459 2 месяца назад

    What is the app you use for the database at 12:20?

  • @luisllaboj
    @luisllaboj 3 месяца назад +1

    Doesn’t “hybrid” already makes all components and pages to prerender? Export const prerender = “true” is the default I believe.

    • @pasha19951000
      @pasha19951000 3 месяца назад +1

      yes, "hybrid" mode makes all pages and components prerendered by default. but you can't make prerender = false for some of the components only the entire page. So if you want to use a static prerendered html page but make only one component as SSR you should use server islands

  • @jyjyjyj3
    @jyjyjyj3 3 месяца назад

    What is the difference between doing the same thing in SSG mode with the client fetching the required data?

    • @inderjotsingh5868
      @inderjotsingh5868 3 месяца назад +1

      Client Side Fetching means , javascript will be shipped to the client , which need to be downloaded and parsed , and we can't really do any confidential stuff there like playing with database , we need to have a separate server running for catering request .
      While in case of islands , they run on the server ,so we are free to do any thing and the result will be fully rendered html , better performance.

    • @pasha19951000
      @pasha19951000 3 месяца назад

      no difference. server island add client script to fetch but just html generated by server (SSR) not json

  • @andrianrahardja8854
    @andrianrahardja8854 3 месяца назад

    First 🤟

    • @schmoris
      @schmoris 3 месяца назад

      First answer to first comment 🤘