How Astro Made My Site 100x Faster

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

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

  • @pastuh
    @pastuh 2 года назад +2

    Just tested, and somehow reminds Laravel :D
    Really simple, and actually I like it :)

  • @xxxxxxxxxxxxxxxxxxxxxxxxx981
    @xxxxxxxxxxxxxxxxxxxxxxxxx981 2 года назад

    Good profiling practices. Thank you James.

  • @yoshq
    @yoshq Год назад

    Bro your blog is amazingly fast will you share the code of your blog with Astro? is there an available github repo?

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

    Awesome, can you build a todo app with astro and data is stored in supabase, when we refresh page the newly added data is updated in todo list ?

    • @james-perkins
      @james-perkins  Год назад

      I will look into getting it done in first couple months of year

  • @AlanDanielx
    @AlanDanielx 2 года назад

    Are you sharing the code of your blog with Astro? is there any repository?

    • @james-perkins
      @james-perkins  2 года назад

      It is on GitHub github.com/perkinsjr/james-perkins-astro

  • @johnlim5744
    @johnlim5744 2 года назад

    Hi James, sorry for asking a noob question here. Can I ask if there's a way for me to get the url of the page I am currently in the .astro code? (e.g. if I console log the variable, the url of the page that the user is currently on can be logged)?

    • @james-perkins
      @james-perkins  2 года назад +2

      Yeah you can use url which is an Astro prop
      docs.astro.build/en/reference/api-reference/#astrourl

    • @johnlim5744
      @johnlim5744 2 года назад

      @@james-perkins Alright, I'll check it out. Thank you!

  • @peteryu7870
    @peteryu7870 2 года назад

    Sorry the comments doesn't seem to be showing up

    • @james-perkins
      @james-perkins  2 года назад

      I did see your original comment but RUclips removed it…
      To answer your questions. Yes it’s just like pagination in theory but you’ll need to read up a bit here
      docs.astro.build/en/core-concepts/routing/#pagination

    • @peteryu7870
      @peteryu7870 2 года назад +1

      @@james-perkins ok thank you James. Sorry for the spam. I'll look into it!

  • @SRG-Learn-Code
    @SRG-Learn-Code 2 года назад

    Dark mode, please....

  • @Bl0ck3dz
    @Bl0ck3dz 2 года назад

    thats not apples to apples tho, you dont have the same functionality on your new site

    • @james-perkins
      @james-perkins  2 года назад

      The only functionality missing from this is comment section. The rest is indeed there, no one said it was apples to apples but getting rid of 100s of kb of JavaScript was.

    • @Bl0ck3dz
      @Bl0ck3dz 2 года назад

      @@james-perkins I was talking about the search/autocomplete.

    • @james-perkins
      @james-perkins  2 года назад

      The search again wouldn’t ship JavaScript unless the user had loaded the page / how I decide to load the js. Instead of bundled regardless of how it is implemented.
      The only reason I had search was because I didn’t implement pagination.
      But again the whole thing isn’t an apples to apples comparison.

  • @StupidInternetPeople
    @StupidInternetPeople 2 года назад +1

    What a ridiculous title. 😂

    • @james-perkins
      @james-perkins  2 года назад

      Worked though. Thanks for clicking 😂

    • @StupidInternetPeople
      @StupidInternetPeople 2 года назад

      @@james-perkins It did, disliked and blocked, UR welcome 😂

    • @james-perkins
      @james-perkins  2 года назад +3

      Oh no. Please come back. I am sad.