Flutter Web vs HTML, CSS & JS: Performance Comparison

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ธ.ค. 2024

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

  • @iboy883
    @iboy883 ปีที่แล้ว +45

    i would love to see the comparison again now with flutter 3 it would be really interesting

  • @Damielsestrem
    @Damielsestrem 2 ปีที่แล้ว +13

    can you, please, do the same test with flutter 3.3.1?

  • @rogeriomq
    @rogeriomq 2 ปีที่แล้ว +45

    Great comparison. It would be nice to see with the new flutter version 2.10.1 or higher

    • @S_tories265
      @S_tories265 2 ปีที่แล้ว +4

      Yeah maybe in the near future we'll see flutter dominant the web
      Maybe who knows 😅😅

    • @relax3the6mind9
      @relax3the6mind9 ปีที่แล้ว

      Please do this!!!!

  • @jeschinstad
    @jeschinstad 2 ปีที่แล้ว +7

    But if subsequent loads are substantially faster, then it would've been interesting to see that comparison as well. Also, didn't I read somewhere that Flutter web can be compiled into html5 rather than running as a JS app on canvas?

  • @HammadKhanYT
    @HammadKhanYT 10 หลายเดือนก่อน +2

    Ran the code with the latest Flutter 3.16. The website transferred 64.8 MB data and it took 2.73 seconds to load which is quite an impressive change from when the video was made originally (2 years ago). Of course, I ran the code locally only which should be faster but then it would also be in debug mode.

  • @sticklebrix1756
    @sticklebrix1756 3 ปีที่แล้ว +25

    The problem is there are websites that don't neatly fall into "content heavy website" vs "interactive app". For instance you get sites that are very data-centric that have reasonably complex UI's for viewing / exploring that data where a UI framework would be the obvious option. Now for some Flutter would be fine because that bit is locked behind a login, so the long first initial page load doesn't really matter. However for others they make a limited amount of data and / or functionality public and want to be indexed by search engines, because that is a source of customer acquisition, and for that Flutter is pretty bad.

    • @mettleUnbeaten
      @mettleUnbeaten 2 ปีที่แล้ว

      Would you please help me with some examples of interactive websites. Thank you

  • @peekpt
    @peekpt 2 ปีที่แล้ว +3

    The principle of web page is to be more fragmented as possible to be able to load faster and free resources. I believe flutter will be good for making appliances interfaces, apps, computer software. For web it's another story. I'm willing to see it on embedded devices.

  • @7mada89
    @7mada89 3 ปีที่แล้ว +13

    Thanks Andrea for doing such a compression.
    I have two questions
    1- Did you use HTML renderer or CanvasKit renderer for flutter, the doc said that HTML renderer is a bit faster
    2- Did you tried using dart shelf_static

    • @aytunch
      @aytunch 3 ปีที่แล้ว

      html renderer does not support svg's for instance and it is not rendering UI pixel perfect. What does the shelf_static do exactly?

    • @7mada89
      @7mada89 3 ปีที่แล้ว

      ​@@aytunch oh so html render isn't that flexible
      shelf_static is for building static web page with html and css

    • @wdestroier
      @wdestroier 3 ปีที่แล้ว

      shelf_serve is a library, that runs in the back-end, written in Dart, to serve content. It isn't related to Flutter

    • @7mada89
      @7mada89 3 ปีที่แล้ว

      @@wdestroier
      Yeah so true
      but you can host a static web page with it, recently I found a another tutorial about building web pages with dart and html and css what do you think about this approach ?

  • @highlightstime2723
    @highlightstime2723 2 ปีที่แล้ว +5

    I'm confused why there's not more complains about the flutter for web scroll performance. That's what's worst for me when using flutter for web

  • @DanVanDamme
    @DanVanDamme 3 ปีที่แล้ว +4

    Thanks for sharing this comparison Andrea! Curious, what technology did you use to create your new website? Vanilla HTML, CSS and JavaScript?

    • @CodeWithAndrea
      @CodeWithAndrea  3 ปีที่แล้ว +8

      I uses a static site generator called Publish:
      github.com/johnsundell/publish
      Though if I was starting from scratch, I'd probably go with Next.js or similar.

  • @andyyork6471
    @andyyork6471 2 ปีที่แล้ว +1

    Was flutter in debug, or production mode when testing?

  • @intuneknight9681
    @intuneknight9681 2 ปีที่แล้ว +4

    You can use Angular with Dart, you would be amaze how Dart take Angular to the next level.

    • @storm209e
      @storm209e 2 ปีที่แล้ว

      nobody talks about it, can't find any normal discussion video on it.

  • @communityband1
    @communityband1 2 ปีที่แล้ว +5

    It really does just seem to be the download time. I tried your Flutter demo page, and on first load, it took about 4 seconds. Refreshing the page though it seemed to load instantly. So hosting a Flutter app on a service with good bandwidth would be advisable.

    • @bigmistqke
      @bigmistqke 2 ปีที่แล้ว

      If it takes me 4 seconds to open ur website there won't be a second time

    • @communityband1
      @communityband1 2 ปีที่แล้ว +1

      @@bigmistqke I really don't have an issue waiting a bit for a website to load. Most of the time it won't be the fault of the website author but rather the service they host on. In any case, it will take me longer to find another site than it will to wait a bit.

  • @tomaszcz.6949
    @tomaszcz.6949 ปีที่แล้ว +1

    Has anything changed since this test ? Have the new versions brought any improvement ?

  • @thefamousdjx
    @thefamousdjx 2 ปีที่แล้ว +2

    I’ll check again in a few years. Flutter tables cant even merge cells like colspan does. I dont even want to check how it does with charts. Some people saying it loads faster the second time but people are too impatient lately u’ll be losing business just because of that super slow page load. Javascript aint that bad

  • @Juliano-v
    @Juliano-v 3 ปีที่แล้ว +12

    About the loading "speed", if you implement flutter_native_splash it decreases a lot. Thank you for the video!

    • @Melon9an
      @Melon9an 3 ปีที่แล้ว +5

      Could explain more plz, cause it doesn't change the loading speed, it's just an image while ur waiting.....

    • @nested9301
      @nested9301 3 ปีที่แล้ว +4

      Seriously ?? Is this a joke?

  • @evgenii.zaikin
    @evgenii.zaikin 2 ปีที่แล้ว +2

    2022 year, any changes?

  • @AapVanDieKaap
    @AapVanDieKaap 2 ปีที่แล้ว +9

    It doesn't really matter because once the flutter runtime is cached there will be no difference.

  • @Simonsayztaga
    @Simonsayztaga 3 ปีที่แล้ว +1

    Great Video! Thanks Andrea

  • @notetodeiii2326
    @notetodeiii2326 3 ปีที่แล้ว +3

    Do you think it will be better in the future? Anw great content!

  • @cygreeneye
    @cygreeneye 11 วันที่ผ่านมา

    I chose flutter because futures technology already wants to be comparable for mobile tablets and pc

  • @ThunderboltPath
    @ThunderboltPath 3 ปีที่แล้ว +1

    Very insightful, thanks!

  • @someshsahu4638
    @someshsahu4638 ปีที่แล้ว +1

    Very nice explanation sir thank you so much 🙏🏼🙏🏼🙏🏼

  • @Ismail-hd4yz
    @Ismail-hd4yz 10 หลายเดือนก่อน

    I am building a very highly complex web app with flutter. i guess after flutter 3.0 the performance has increased a lot

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

      can i see it

  • @Gaijin101
    @Gaijin101 3 ปีที่แล้ว +5

    Seems like Flutter Web is only suitable for big webapps or CMS

    • @scottstoll-dn2yx
      @scottstoll-dn2yx 3 ปีที่แล้ว +7

      That's what the Flutter team and veteran Flutter developers have been saying all along. Flutter was never intended to be used to create a whole website, it's for web apps. People are trying to use it for something that it wasn't designed for, and then complaining when it doesn't do it well.

    • @johnsonemmanuel
      @johnsonemmanuel 3 ปีที่แล้ว +2

      Flutter web stable version is a one year baby. i guess, it would improve over time. comparing flutter web with existing frame work is comparing iphone model 1 with model 13

  • @its.arjun.s
    @its.arjun.s 2 ปีที่แล้ว

    Flutter pages stutter on my phone. I'm skeptical

  • @smarthumanism3221
    @smarthumanism3221 3 ปีที่แล้ว

    Please change the mike. The sounds vibrates too much that it is hard to understand.

  • @m_leBrave
    @m_leBrave 2 ปีที่แล้ว

    Can you do it again Since Flutter has been updated

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 2 ปีที่แล้ว

    Please now do this using flutter 3.3

  • @S_tories265
    @S_tories265 2 ปีที่แล้ว

    thank you sir for sharing this infos with us 🙏

  • @TheSinisterCurse
    @TheSinisterCurse 2 ปีที่แล้ว

    Thank you very much for that comparison and explanation. Helped me on making a decision very clearly.

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

    This test is BS unless it's served from the same backend (it's not). We don't have any data on how long it's taking for the backend to respond.

  • @iamtafara
    @iamtafara 3 ปีที่แล้ว

    Cant say im surprised

  • @lmarkrol
    @lmarkrol 3 ปีที่แล้ว +3

    Wait for fuchsia OS then try to compare again

  • @nemkov.official
    @nemkov.official 3 ปีที่แล้ว

    Go to test today😉

    • @mswinvle
      @mswinvle 2 ปีที่แล้ว

      Have you tested it?

  • @youtubewatch8329
    @youtubewatch8329 2 ปีที่แล้ว +1

    I feel when you execute flutter web first fime it takes too much time.. But after that it quite faster..
    Please Create some other comparisons videos

  • @sianami-e9s
    @sianami-e9s 6 หลายเดือนก่อน

    please run new test with new flutter feature (wasm)

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

      Don't have time for that atm. The project is open source so you can do it yourself ;)

  • @tth-coulid
    @tth-coulid 21 วันที่ผ่านมา

    I learned flutter because I hate div and span.

  • @burgasHoH
    @burgasHoH 3 ปีที่แล้ว

    Nice video :)

  • @zonasochi1147
    @zonasochi1147 2 ปีที่แล้ว

    Круто !!

  • @cekroz
    @cekroz ปีที่แล้ว

    Tray again with WASM !

    • @CodeWithAndrea
      @CodeWithAndrea  ปีที่แล้ว +1

      I tried but got some compile errors and didn’t have time to investigate

    • @cekroz
      @cekroz ปีที่แล้ว

      @@CodeWithAndrea I had to enable 3 flags in chrome : Experimental WebAssembly, Experimental WebAssembly JavaScript Promise Integration (JSPI) and WebAssembly Garbage Collection.

  • @apisaga
    @apisaga ปีที่แล้ว

    Flutter 3.0 please

  • @muhamadhaydar8419
    @muhamadhaydar8419 2 ปีที่แล้ว +1

    Could you test it again after flutter 3.0, i would like to see the result again !!

    • @CodeWithAndrea
      @CodeWithAndrea  2 ปีที่แล้ว +1

      The project is open source and methodology explained in the article => you can test it yourself

  • @rajaryan7167
    @rajaryan7167 2 ปีที่แล้ว

    thanks

  • @shubhamboghara4490
    @shubhamboghara4490 3 ปีที่แล้ว

    Speed code of this flutter version.

    • @violetsjade
      @violetsjade ปีที่แล้ว

      @TechTimeTraveller Thanks for watching and commenting, ❤❤ you've been randomly selected as a winner in today's giveaway, use the name above 👆👆 to claim your prize.💫🎁🎁🥳🥳

  • @OOpSjm
    @OOpSjm 2 ปีที่แล้ว

    This comparison doesn't seem right.

  • @prodbyunyverse397
    @prodbyunyverse397 27 วันที่ผ่านมา

    Flutter 3 is laughing

  • @moutaouakilayoub2337
    @moutaouakilayoub2337 2 ปีที่แล้ว +1

    aser tqewed

  • @DartMitai
    @DartMitai 3 ปีที่แล้ว +5

    flutter web it is real shit

    • @wdestroier
      @wdestroier 3 ปีที่แล้ว +2

      It works great! The only problem is that it takes too much time to load

    • @learnwitharslan1049
      @learnwitharslan1049 2 ปีที่แล้ว

      @@wdestroier yes and that sucks.

    • @finnbarm
      @finnbarm 2 ปีที่แล้ว +2

      It's good when you use it for what it was made for. If you're building a highly interactive app, such as a video editor or word processor that you want to run in the browser, flutter is one of the best options because you don't need to deal with JS at all.