News for hackers. Stuff that matters.
Re:Conditional JavaScript: Only download when it is appropriate by chrismorgan on Thursday December 17, 2020 @10:44PM (#25463572)
It used to be extremely common to allow users to select features at install time, mostly in order to save disk space. It’s not particularly common any more, and I don’t think any app stores support the concept.

Deactivating features based on battery life? That’s absolutely still a thing on native apps. If you throw Windows into battery saver mode, for example, the acrylic material becomes opaque; if you put Android into power saver mode, native controls will shut off their gratuitous animations, things like that. Nothing major, but a bunch of small things.

Re:Conditional JavaScript: Only download when it is appropriate by paulryanrogers on Friday December 18, 2020 @12:13AM (#25464117)
It may be coming back. Latest Call of Duty has a lighter install option. And Fortnite is getting a lighter version as well.
Re:Conditional JavaScript: Only download when it is appropriate by theamk on Friday December 18, 2020 @01:19AM (#25464402)
Note that’s a mode which needs to be explicitly activated by user, and the user is aware of. This is fine.

The post offers something else: vague heuristics, different on each website, and no feedback or ways to override.

See the difference?

Re:Conditional JavaScript: Only download when it is appropriate by chrismorgan on Friday December 18, 2020 @04:17AM (#25465302)
I agree that it’s an important distinction, and disk space saving things are seldom automatic (but not never); but power saving mode is routinely activated without user input, e.g. Windows defaults to switching into it at 20%.
Re:Conditional JavaScript: Only download when it is appropriate by tored on Friday December 18, 2020 @08:46AM (#25466976)
I have a crazy idea, lets code as if we were always on battery saving mode. ¯\_(ツ)_/¯
Re:Conditional JavaScript: Only download when it is appropriate by SGML_ROCKSTAR on Friday December 18, 2020 @09:35AM (#25467454)
I'd like to read what you have to say about doing so.
Re:Conditional JavaScript: Only download when it is appropriate by tored on Friday December 18, 2020 @09:38AM (#25467482)
If features doesn't need to be loaded, are they actually needed?
Re:Conditional JavaScript: Only download when it is appropriate by SGML_ROCKSTAR on Sunday December 20, 2020 @05:28AM (#25485250)
Loading them being unnecessary would be so when? Do you have time to elaborate?
Re:Conditional JavaScript: Only download when it is appropriate by madeofpalk on Friday December 18, 2020 @07:50AM (#25466557)
> I don’t think any app stores support the concept

At least the iOS App Store I believe supports splitting up assets and loading them after initial install (optionally?)