Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Key Takeaways
Chrome 47 introduces features like automatically generated splash screens for web apps, requestIdleCallback for deferring script execution, and improved desktop notifications. Developers can utilize these features to enhance user experience and improve app performance.
Full Transcript
[Music] Chrome 47 automatically generates a splash screen for web apps launched from the home screen on Android you can defer script execution until idle with request idle callback and push notifications will automatically dismiss on desktop these are just a few of the new features for developers in Chrome 47 let's dive in and see what's new in Chrome making the web app experience better has been a major Focus for Chrome to make it easier for users to re-engage with your app add to home screen puts your app directly on the Android home screen and you can customize the way your app looks when it's launched by modifying the web app manifest adjusting colors eliminating the address bar and More in Chrome 47 a dynamically generated splash screen is shown even while while Chrome itself is loading making your app look that much more Polished in the past users typically saw white screen while waiting for your app to load the splash screen is generated based on a combination of information from the web app manifest including the app name background color and the icons Chrome will use the icon that is closest to 128 device pixels so on a 1x device that's 128x 12 8 pixels or on a 2X device it's 256x 256 and so forth personally I recommend providing a 1x a two a three and a 4X version of your icon that'll make sure that you're well covered for all devices when a user launches your app from their home screen the splash screen is shown and once your app begins to draw the splash screen disappears one of the biggest problems hurting critical path is lots of JavaScript executing at the wrong time if it's run at the wrong time for example when the user Scrolls the page or you append a Dom element while the user is tapping a button things can become unresponsive request idle callback changes that in the same way that request animation frame allows us to schedule animations properly and maximize our chances of hitting 60 FPS request best idle callback will schedule work when there's free time either at the end of the frame or when the user is inactive functions registered with request idle call back are given a deadline and should return before that timeline is reached otherwise you'll introduce Jank if there's still work to do the function can register for another request idle call back to continue the work during the next idle period request idle call back is now available in Chrome and is coming coming to other browsers soon in the meantime you can check out the shim so give it a shot and let us know what you think by tweeting us at chromium Dev push notifications powered by service workers have been available since Chrome 42 and we've heard from users and developers alike that on desktop notifications would remain visible until the user dismissed them Chrome 47 now automatically dismisses desktop notifications after about 20 seconds unless you set require interaction true when calling show notification there are lots of other new features for Developers for example array prototype includes which simplifies checking array membership you can now enumerate cameras microphones and speakers with the Navigator media devices API and prefixed encrypted media extensions are now disabled in favor of unprefixed EMES these are just a few of the new features in Chrome 47 for developers be sure to check out the description below to get links to more details and learn about some of the other new features if you haven't already subscribe to our Chrome Developers YouTube channel to stay up to date with the latest news I'm Pete leage and as soon as Chrome 48 is released I'll be right here to tell you what's new in Chrome [Music]
Original Description
Chrome 47 automatically generates a splash screen for apps launched from the home screen on Android; you can defer script execution until idle with requestIdleCallback and push notifications will now automatically dismiss on desktop. Pete LePage has all the details and how you can use these new developer features in Chrome 47!
Splash Screens
* Update post: https://developers.google.com/web/updates/2015/10/splashscreen
* Voice Memos Sample: https://voice-memos.appspot.com/
requestIdleCallback
* Update post: https://developers.google.com/web/updates/2015/08/using-requestidlecallback
* Spec: https://w3c.github.io/requestidlecallback/
* Chrome Status: https://www.chromestatus.com/feature/5572795866021888
Autodismissing Notifications
* Update post: https://developers.google.com/web/updates/2015/10/notification-requireInteraction
* Sample: https://googlechrome.github.io/samples/notifications/requireInteraction.html
Other New Features
* Media Device API: https://developers.google.com/web/updates/2015/10/media-devices
* Media Device API Demos:
* https://webrtc.github.io/samples/src/content/devices/input-output
* https://webrtc.github.io/samples/src/content/devices/multi
* Array.prototype.includes: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
Subscribe to the Google Developers channel here: https://goo.gl/WkxCU5
Playlist
Uploads from Chrome for Developers · Chrome for Developers · 49 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
▶
50
51
52
53
54
55
56
57
58
59
60
Polymer Performance Patterns (The Polymer Summit 2015)
Chrome for Developers
Polymer Power Tools (The Polymer Summit 2015)
Chrome for Developers
Chrome Dev Summit 2014 – Chrome Case Studies
Chrome for Developers
Web Directions Code 2015 round up
Chrome for Developers
Maintainable Code - HTTP203
Chrome for Developers
iron-ajax… wat?! -- Polycasts #26
Chrome for Developers
The Guardian - Supercharged
Chrome for Developers
ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
Chrome for Developers
#AskPolymer: Rob answers all the questions ever -- Polycasts #27
Chrome for Developers
The Future of JavaScript - HTTP203
Chrome for Developers
Data Binding 101 -- Polycasts #28
Chrome for Developers
The Guardian part 2 - Supercharged
Chrome for Developers
The Future of Web Audio: with Chris Wilson and Chris Lowis
Chrome for Developers
Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome for Developers
Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Chrome for Developers
#AskPolymer: How do you make the show? -- Polycasts #29
Chrome for Developers
Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Chrome for Developers
Binding to Objects -- Polycasts #30
Chrome for Developers
Player FM - Supercharged
Chrome for Developers
Where’s the Designer? #AskPolymer -- Polycasts #31
Chrome for Developers
Jake Beats Wikipedia - HTTP203
Chrome for Developers
Supercharged Observers! -- Polycasts #32
Chrome for Developers
Jai's Web blog - Supercharged
Chrome for Developers
Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Chrome for Developers
What about internationalization? #AskPolymer -- Polycasts #33
Chrome for Developers
Developing for Billions (Chrome Dev Summit 2015)
Chrome for Developers
Google+ Performance Improvement Comparison
Chrome for Developers
Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Chrome for Developers
Progressive Web Apps (Chrome Dev Summit 2015)
Chrome for Developers
Instant Loading with Service Workers (Chrome Dev Summit 2015)
Chrome for Developers
Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Chrome for Developers
Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Chrome for Developers
Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Chrome for Developers
Polymer - State of the Union (Chrome Dev Summit 2015)
Chrome for Developers
Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Chrome for Developers
Introduction to RAIL (Chrome Dev Summit 2015)
Chrome for Developers
DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
Chrome for Developers
RAIL in the real world (Chrome Dev Summit 2015)
Chrome for Developers
#ChromeDevSummit talks are up - W00T! -- Polycast #34
Chrome for Developers
V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
Chrome for Developers
Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Chrome for Developers
Owning your performance: RAIL (Chrome Dev Summit 2015)
Chrome for Developers
HTTP/2 101 (Chrome Dev Summit 2015)
Chrome for Developers
Leadership Panel (Chrome Dev Summit 2015)
Chrome for Developers
Build Processes, Totally Tooling Tips (S2, Ep 5)
Chrome for Developers
Accessibility (Chrome Dev Summit 2015)
Chrome for Developers
Binding to Arrays -- Polycasts #35
Chrome for Developers
HTTP2 - HTTP203
Chrome for Developers
Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome for Developers
Call For Submissions - Supercharged
Chrome for Developers
Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Chrome for Developers
Testing AJAX with Web Component Tester -- Polycasts #37
Chrome for Developers
Slack: Extended Xmas Special - Supercharged
Chrome for Developers
Browser testing with Travis & Sauce Labs -- Polycasts #38
Chrome for Developers
Optimize for production with Vulcanize -- Polycasts #39
Chrome for Developers
Highlights from Chrome Dev Summit 2015
Chrome for Developers
Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome for Developers
Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Chrome for Developers
How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
Chrome for Developers
Colors – DevTools Tonight #0 (Pilot)
Chrome for Developers
Related Reads
📰
📰
📰
📰
My Best Engineer Started Rejecting Junior Candidates. Then I Realized He Would Have Rejected Himself
Medium · Programming
The Second Maya: When Human Imagination Starts Becoming Reality
Medium · AI
AI, Please Stop! Will You?
Medium · AI
Beyond Dashboards: AI, Ontology And The Future Of Business Intelligence
Forbes Innovation
🎓
Tutor Explanation
DeepCamp AI