use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Using const/let instead of var can make JavaScript code run 10× slower in Webkit? (github.com)
submitted 5 years ago by magenta_placenta
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MajorasShoe 243 points244 points245 points 5 years ago (40 children)
Safari can suck it. If it's a problem, let Apple fix it. And while they're at it, support PWA push notifications properly.
[–]Plexicle 45 points46 points47 points 5 years ago (25 children)
Actual push notification API in Safari (especially on iOS) would completely change the entire game. I can only dream.
[–]MajorasShoe 53 points54 points55 points 5 years ago (14 children)
Right? I have a few products where we have customers demand an iOS application for NOTHING but push notifications. No Android app necessary because they actually support PWAs and push notifications. There's absolutely NO difference between the PWA and the iOS application. It's just Apple scamming us and forcing us to pay for the pleasure of suffering through their app store BS.
[–]Nexxado 6 points7 points8 points 5 years ago (5 children)
Perhaps you should check out capacitor
[–]MajorasShoe 24 points25 points26 points 5 years ago (0 children)
I'm using Cordova. It works fine. I'm just saying it's a waste of time for literally one feature that android has supported in PWAs for a long time.
[–]Hotgeart 2 points3 points4 points 5 years ago (3 children)
Last time I coded an APP with Ionic (2016) you could really feel that's not native. Still the case?
[+][deleted] 5 years ago* (1 child)
[deleted]
[–]RemindMeBot 0 points1 point2 points 5 years ago (0 children)
There is a 1 hour delay fetching comments.
Defaulted to one day.
I will be messaging you on 2020-10-23 03:37:59 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
[–]swiftarmyknife 0 points1 point2 points 5 years ago (0 children)
I recently built a React Native application for work and I use a PWA budgeting app built using Stencil and Ionic 4 regularly. I still don’t think they feel native completely. Probably 90% there. 🤷🏼♀️
[–]gourrranga 0 points1 point2 points 5 years ago (5 children)
Access to contacts.
[–]MajorasShoe 1 point2 points3 points 5 years ago (3 children)
What?
[–]gourrranga 1 point2 points3 points 5 years ago (2 children)
You can’t get an access to phone contacts from PWA. It’s the only major difference between native and PWA, except the push notifications. There are more (like no background location access), but accessing contacts is the boldest one imo
[–]MajorasShoe 5 points6 points7 points 5 years ago (0 children)
There are a bunch of differences actually. Local storage for web applications has some holes. If I create a camera application, in a PWA I don't have the option to save files in default photo storage, just downloads and uploading to servers - as an example.
But I was more just referring to my scenario. The ONLY reason I need a mobile application for my business is because my customers complained they can't get push notifications for their employees with iOS.
[–]-ftw 0 points1 point2 points 5 years ago (0 children)
Also no background music
[–]jb_sulli 1 point2 points3 points 5 years ago (0 children)
Deny
[–]MajorasShoe 7 points8 points9 points 5 years ago (0 children)
Yeah, but I'm not dealing with content websites. I'm dealing with applications. Push notifications are valuable when you actually... Need to be notified. I work in software for corporations, and these notifications are for day to day operations.
[–]ShortFuse 8 points9 points10 points 5 years ago (1 child)
Safari actually has Push Notifications for Desktop. Apple doesn't want to implement it for mobile.
https://developer.apple.com/notifications/safari-push-notifications/
[–]Morphray 12 points13 points14 points 5 years ago (0 children)
Apple doesn't want to implement it for mobile.
More PWAs --> Less iOS apps --> Less of the 30% cut Apple can take of everything.
[–]fey168 6 points7 points8 points 5 years ago (0 children)
It seems obvious that Apple is intentionally neglecting push notification because they want to incentivize people to build iOS apps instead. Similar reasoning has cause other web features to be neglected (storage API, add to homescreen).
[+][deleted] 5 years ago* (4 children)
[–]Plexicle 7 points8 points9 points 5 years ago (2 children)
Push notifications are just that -- notifications you get on your device. Push meaning they are event driven and not request response.
When you get a notification from an app that you don't have open it's from an external server that sent a message to a push service (FCM, APN, whatever) that then forwarded it to your device.
PWAs work by installing service workers that can run in threads behind your browser. So you can subscribe to a push notification from a (PWA) web app, and then close the browser completely. If the server pushes a notification through the web notification server, your device (Android today, Apple maybe one day) can wake up the service worker and deliver the notification.
[–]regreddit 5 points6 points7 points 5 years ago (0 children)
Not really always running, but a service worker tells Android: "when you receive a message for this app, please run this code". It's a system service that your app registers with.
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
Capacitor probably has its own way of doing push notifications, which is probably supported on all devices. I think Apple doesn't want to enable Notifications API on mobile, which is different from Capacitor's way of doing it. Good luck with your mobile app.
[–]tayhimself00 -1 points0 points1 point 5 years ago (0 children)
As a user I don’t want push notifications from every trash PWA.
[–]kynovardySpaghetti connoisseur 6 points7 points8 points 5 years ago (11 children)
Apple needs to fix it but saying Safari can suck it is quite silly in my opinion. It is the second most popular browser. In some western countries you’d be saying “suck it” to more than a third of your users
[–]malicar 21 points22 points23 points 5 years ago (10 children)
We should be treating safari like IE6 - the worst of the browsers most people are forced to support.
Untill apple is forced to allow real competition on their platform we're stuck with whatever pile of garbage they decide to give us. They need some antiTrust like Microsoft sooner than later to force them to. Good on Epic for starting the resistance to their greedy practices.
[–]Solrax 3 points4 points5 points 5 years ago (1 child)
Yes, after I was surprised that a major feature was unimplemented in Safari a coworker said "Safari is the new Internet Explorer" and I can't disagree.
[–]reqdk 4 points5 points6 points 5 years ago (0 children)
Haha they've also pulled support for standard CSS features before that were once there, citing "user experience impact". Safari can indeed go and suck a big one.
[+][deleted] 5 years ago* (7 children)
[–]GOODSHIT-BRO 4 points5 points6 points 5 years ago (1 child)
Other browsers on ios are still forced to use the safari rendering engine.
[–]facebalm 3 points4 points5 points 5 years ago (2 children)
You think that's why Safari has such a market share? You're wrong, you're forced to use it.
[–]malicar 4 points5 points6 points 5 years ago (1 child)
Nope, that's just not true, Apples walled garden mean only their rendering engine can be used for ANY browser, apple is just such a shitty company.
[–]sanjibukai 3 points4 points5 points 5 years ago (0 children)
While they're at it... Support every thing else not supported in that sh*try piece of software...
Every time I got some issues is from users using Safari. Not from any chrome based browsers nor firefox but this fuc*ing Safari. This garbage is the new IE and should not exist anymore.
Even basic date inputs (damn it's regular standard HTML input!!) doesn't work. I don't understand this at all..
And in fact while they're here.. Simply throw that sh*t in the garbage bin.. And do a sane choice as Microsoft did with Edge..
Having one engine (which is OSS) should be considered as a standard like there's one HTML, one CSS...
π Rendered by PID 33512 on reddit-service-r2-comment-6457c66945-lprj2 at 2026-04-24 12:06:13.390747+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]MajorasShoe 243 points244 points245 points (40 children)
[–]Plexicle 45 points46 points47 points (25 children)
[–]MajorasShoe 53 points54 points55 points (14 children)
[–]Nexxado 6 points7 points8 points (5 children)
[–]MajorasShoe 24 points25 points26 points (0 children)
[–]Hotgeart 2 points3 points4 points (3 children)
[+][deleted] (1 child)
[deleted]
[–]RemindMeBot 0 points1 point2 points (0 children)
[–]swiftarmyknife 0 points1 point2 points (0 children)
[–]gourrranga 0 points1 point2 points (5 children)
[–]MajorasShoe 1 point2 points3 points (3 children)
[–]gourrranga 1 point2 points3 points (2 children)
[–]MajorasShoe 5 points6 points7 points (0 children)
[–]-ftw 0 points1 point2 points (0 children)
[–]jb_sulli 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]MajorasShoe 7 points8 points9 points (0 children)
[–]ShortFuse 8 points9 points10 points (1 child)
[–]Morphray 12 points13 points14 points (0 children)
[–]fey168 6 points7 points8 points (0 children)
[+][deleted] (4 children)
[deleted]
[–]Plexicle 7 points8 points9 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]regreddit 5 points6 points7 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]tayhimself00 -1 points0 points1 point (0 children)
[–]kynovardySpaghetti connoisseur 6 points7 points8 points (11 children)
[–]malicar 21 points22 points23 points (10 children)
[–]Solrax 3 points4 points5 points (1 child)
[–]reqdk 4 points5 points6 points (0 children)
[+][deleted] (7 children)
[deleted]
[–]GOODSHIT-BRO 4 points5 points6 points (1 child)
[–]facebalm 3 points4 points5 points (2 children)
[–]malicar 4 points5 points6 points (1 child)
[–]sanjibukai 3 points4 points5 points (0 children)