Hacker Newsnew | past | comments | ask | show | jobs | submit | dekoidal's commentslogin

Have a pat on the head, Safari.


It hasn’t on Macs. Safari is still popular among non-tech folk


It’s still got popularity within tech-inclined Mac/iOS circles too because it’s easier on the battery than Chrome (+derivatives) and Firefox. Some would like to switch but because neither Google nor Mozilla has much to lose for their browsers being battery hogs, relatively little engineering effort gets dedicated to improving efficiency compared to WebKit (which is similarly efficient under Linux in e.g. GNOME Web, proving it’s not purely first-party advantage).


That’s because Apple adds two extra legs to Safari on OS level and cuts both the legs of other browsers in a manner of speaking by rigging this comparison.


In what way do you think this is meaningfully occurring? I ask because I have not heard of Chrome or Firefox being inhibited on energy efficiency by platform limitations.


This needs a big ol’ “citation needed” slapped across it.


I think the narrative is that once developers have the option to tell all of their users "we only support Chrome, just install Chrome" then any support for Safari will dry up.

Unfortunately I don't think we will see if this is how it plays out until Apple has to allow other browsers globally.


The reason Apple doesn't allow any other browser engines on iOS is due to them collecting up to 30% of purchases made through the apps from the app store. If a developer can do the same things with a capable web browser, then they won't need to create a native iOS app and that cuts into Apple's app revenue. So Apple purposely hobbles Safari so it doesn't have any advanced browser APIs for stuff like bluetooth or other APIs that apps have access to, forcing developers to create an app, where Apple can then cut into purchases made through the app.

It has nothing to do with people no longer using Safari and Apple being sad about that. Other browsers can technically be installed on iOS, but the underlying browser engine is forced to be Safari, which lacks many APIs other web browsers could implement, reducing the need for a native app. It's purely Apple's anti-competitive greed that drives this situation. And the EU, Japan, and the US DOJ have noticed. So far only the EU and Japan have actually taken measures to force Apple to change this.

Here's the entire DOJ lawsuit which includes many other instances of anti-competitive practices by Apple.

https://www.justice.gov/archives/opa/media/1344546/dl?inline


What evidence do you have, other than speculation, that Apple is so motivated? What standard features are missing from Safari’s rendering engine that makes it a less capable browser such that developers are forced to produce apps instead?


Specifically for me, my company has a product that could use Bluetooth, but Safari will never implement the Web Bluetooth API, where Chrome has for some time on Android. So the workaround is to use Wifi instead (my product supports both bluetooth and Wifi), which drains the phone battery faster.

No, we do not want to write our own iOS app where Apple can then extort us for a percentage of any sales through the app, and we have to pay for the priviledge to develop that app, as well as buy Apple hardware to do so.

So instead we use Wifi, where we can maintain one single codebase - the web application, which works on both Android and iOS, but has to use Wifi. If Apple allowed Chrome to use its own browser engine, we would simply tell users to install Chrome to interact with our device. Then we don't have to pay Apple for anything, nor should we have to.

Apple purposely won't implement some APIs so they can force developers to create an app for their app store where they can collect money from any additional sales through the app. It's all spelled out in the DOJ suit, why won't you just read it??

https://www.justice.gov/archives/opa/media/1344546/dl?inline


We’ve responded to this in a different thread. See elsewhere.


WebXR hasn't been supported for 10 years so they control their own AR market.


How does it compare to, say, the experience on Android?


Is CSS too hard to learn or something?



Browser performance tips from 2014 mean very little twelve years on. Not only have machines gotten faster and networks gotten faster, rendering engines gotten faster. And I'm doubtful it nested flexboxes would've been all that much of a problem in most cases even then.

The most important thing is to use the right tool for the job. If grid lets you express what you want in the most straightforward way, use it; if flexbox does - even if it needs nesting - then use it instead. Don't shoehorn one into a situation where the other makes more sense. And sometimes either will work for a particular situation and that's fine too; use whatever you find most ergonomic. They're both very good in their own way.


The article is largely about layout shifts caused by flexbox during loading, and while networks have indeed gotten faster, they haven’t gotten faster uniformly across situations and people. Being able to show things properly while they are still downloading remains useful.


Try resizing a browser window with nested a flex layout.


Should you optimize for resize performance? I guess that depends on the app. Use the tool that fits the requirements.


Resizing is not the optimization target, it just makes reflow performance visually apparent.


See also hoverboards


Apple couldn’t do a thing about a hypothetical iceblock.com


At least on iOS, Apple controls the singular web browser implementation. If they wanted to, they definitely could do a thing about any site. The same arguments for policing their App Store would apply to the open internet too, it's scary and dangerous!


Sure they can. Mobile users have no path of recourse if Apple updates WebKit to break or blacklist the site. There is no working alternative on iPhone or iPad.

Maybe the people advocating for browser diversity on iOS were onto something...


Yes, no recourse. But there are still legal consequences. If Apple blocks certain web content they have a harder time arguing that they are not responsible for blocking other we content: copyrighted material, etc.

They don’t want that cost/responsibility.


Vivaldi is mine as it blocks YouTube ads and lets me play yt videos with the screen locked.


Well, when MS give OpenAI free use of their servers and OpenAI call it a $10 billion investment, then they use up their tokens and MS calls in $10 billion in revenue, I think so, yes.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: