The viability of JavaScript frameworks on mobile
1–10 of 85 posts
Re: The viability of JavaScript frameworks on mobile
#2Re: The viability of JavaScript frameworks on mobile
#3Basically... the old way of doing things.
An example site https://www.lfgss.com/ is 280KB on first load (and most of that is Mozilla Persona) and subsequent requests are usually around 10KB.
Even though that company is now dead, I'm still working on it and aim to strip out Persona (it's deprecated) and to set a first load goal of 100KB (which should be easy to achieve).
People should feel the power of their devices, and the only way to do that is to have those devices do less, not more.
Re: The viability of JavaScript frameworks on mobile
#4Re: The viability of JavaScript frameworks on mobile
#5Re: The viability of JavaScript frameworks on mobile
#6With Microcosm we consciously chose to go the other direction: Do the work server-side and serve HTML. Basically... the old way of doing things. An example site https://www.lfgss.com/ is 280KB on first load (and most of that is Mozilla Persona) and subsequent requests are usually around 10KB. Even though that company is now dead, I'm still working on it and aim to strip out Persona (it's deprecated) and to set a firs…
Re: The viability of JavaScript frameworks on mobile
#7Flagship phones improve things a little each year, but to quote William Gibson, the future is here, but unevenly distributed.
Re: The viability of JavaScript frameworks on mobile
#8Rule #1 for optimisation: "You can't make code run faster. You can only make it do less." It's true for mobile devices as much as everything else.
Re: The viability of JavaScript frameworks on mobile
#9Honestly using the DOM API isn't all that hard. Yes it awkward, verbose and sometimes cumbersome but it's still pretty straight forward. I'm actually really liking react lately but if I want something done well for a mobile I almost never use a framework.
Another thing this article didn't touch on was latency. When I was doing work for vehicles that had poor internet access via satellite every single http call just killed the load (this included fetching css, javascript, etc). I can't stress enough how much better your page can load if you combine as much stuff as possible, even images if you can display them as backgrounds.