3 ms·
PWAs are generally significantly lighter, size wise, than Electron.
by saagarjha 7y ago
PWAs are generally significantly lighter, size wise, than Electron.
- thefounder 7y agoThey are also significantly less powerful(i.e you can't even make a http request if the target doesn't whitelist you)
- deleted 7y ago[deleted]
- me551ah 7y agoBut the overhead of a dynamic language like javascript is always going to be much higher than Swift/Java.
- saagarjha 7y agoTechnically, this isn't always true. But in general the overhead of using JavaScript isn't the actual blocker for making good UI experiences for a platform.
- me551ah 7y agoJavascript is only one of the aspects. With native apps you also get Hardware-accelerated GPU rendering on UI controls. Thus making the UI appear a lot smoother. While mobile browsers accelerate some parts of a webpage using GPUs, most parts of a webpage are not. This is due to the huge amount of complexity in layouts on a typical webpage. Same is true even for most desktop browsers, with the exception of Firefox when you use WebRender on a supported nVidia GPU ( but even that is in beta). This is the reason why Google built flutter like a game engine, so that it could use the additional GPU horsepower on mobile apps to make UI appear more smoother and natural.
- fauigerzigerk 7y agoI thought both Flutter and Chrome use Skia for rendering. Does that not result in comparable GPU acceleration?