News for hackers. Stuff that matters.
Re:Chromium-based Edge preview builds by leeoniya on Monday April 08, 2019 @05:09PM (#19609070)
when people say "Safari is the new IE" they mean that Safari has numerous bugs and missing features that take years to fix or implement. there's probably a ton of CSS stuff that doesn't need -webkit prefixes anymore in any browser (because it has been standardized). except of course in the outdated and widely-used Safari/iOS. For instance, they only now got Intersection Observer (super important to efficiently lazy load on mobile devices) in the latest iOS tech preview. many browsers have had it since 2017: https://caniuse.com/#search=intersectionobserver
Re:Chromium-based Edge preview builds by saagarjha on Monday April 08, 2019 @05:51PM (#19609403)
Let's not beat around the bush: Intersection Observer can and will be used to detect ad impressions too. Calling it "super important to lazy load images" doesn't show the whole picture.
Re:Chromium-based Edge preview builds by leeoniya on Monday April 08, 2019 @06:22PM (#19609657)
ummm, did you get the impression that i was beating around the bush? i stated exactly why i've personally needed it and have had to resort to polyfills even for the latest iOS.

> Intersection Observer can and will be used to detect ad impressions too.

yes, and? would you rather it be done using inefficient, non-passive onscroll, onresize and onorientationchange events with a bunch more MutationObserver and getBoundingclientRect() sprinkled in plus a generous helping of setInterval(..., 100) for UI polling? cause that's how things basically work today (and how the polyfill works). replacing all that junk with a normal, optimized API is exactly how it should be.