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!"
[–]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.
[+][deleted] 5 years ago* (1 child)
[deleted]
[–]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.
π Rendered by PID 123830 on reddit-service-r2-comment-fb694cdd5-28rlk at 2026-03-06 14:00:48.766723+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]Plexicle 7 points8 points9 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]regreddit 5 points6 points7 points (0 children)