Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)

Chrome for Developers · Intermediate ·📰 AI News & Updates ·10y ago

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
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Chrome for Developers · Chrome for Developers · 49 of 60

1 Polymer Performance Patterns (The Polymer Summit 2015)
Polymer Performance Patterns (The Polymer Summit 2015)
Chrome for Developers
2 Polymer Power Tools (The Polymer Summit 2015)
Polymer Power Tools (The Polymer Summit 2015)
Chrome for Developers
3 Chrome Dev Summit 2014 – Chrome Case Studies
Chrome Dev Summit 2014 – Chrome Case Studies
Chrome for Developers
4 Web Directions Code 2015 round up
Web Directions Code 2015 round up
Chrome for Developers
5 Maintainable Code - HTTP203
Maintainable Code - HTTP203
Chrome for Developers
6 iron-ajax… wat?! -- Polycasts #26
iron-ajax… wat?! -- Polycasts #26
Chrome for Developers
7 The Guardian - Supercharged
The Guardian - Supercharged
Chrome for Developers
8 ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
Chrome for Developers
9 #AskPolymer: Rob answers all the questions ever -- Polycasts #27
#AskPolymer: Rob answers all the questions ever -- Polycasts #27
Chrome for Developers
10 The Future of JavaScript - HTTP203
The Future of JavaScript - HTTP203
Chrome for Developers
11 Data Binding 101 -- Polycasts #28
Data Binding 101 -- Polycasts #28
Chrome for Developers
12 The Guardian part 2 - Supercharged
The Guardian part 2 - Supercharged
Chrome for Developers
13 The Future of Web Audio: with Chris Wilson and Chris Lowis
The Future of Web Audio: with Chris Wilson and Chris Lowis
Chrome for Developers
14 Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome for Developers
15 Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Chrome for Developers
16 #AskPolymer: How do you make the show? -- Polycasts #29
#AskPolymer: How do you make the show? -- Polycasts #29
Chrome for Developers
17 Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Chrome for Developers
18 Binding to Objects -- Polycasts #30
Binding to Objects -- Polycasts #30
Chrome for Developers
19 Player FM - Supercharged
Player FM - Supercharged
Chrome for Developers
20 Where’s the Designer? #AskPolymer -- Polycasts #31
Where’s the Designer? #AskPolymer -- Polycasts #31
Chrome for Developers
21 Jake Beats Wikipedia - HTTP203
Jake Beats Wikipedia - HTTP203
Chrome for Developers
22 Supercharged Observers! -- Polycasts #32
Supercharged Observers! -- Polycasts #32
Chrome for Developers
23 Jai's Web blog - Supercharged
Jai's Web blog - Supercharged
Chrome for Developers
24 Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Chrome for Developers
25 What about internationalization? #AskPolymer -- Polycasts #33
What about internationalization? #AskPolymer -- Polycasts #33
Chrome for Developers
26 Developing for Billions (Chrome Dev Summit 2015)
Developing for Billions (Chrome Dev Summit 2015)
Chrome for Developers
27 Google+ Performance Improvement Comparison
Google+ Performance Improvement Comparison
Chrome for Developers
28 Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Chrome for Developers
29 Progressive Web Apps (Chrome Dev Summit 2015)
Progressive Web Apps (Chrome Dev Summit 2015)
Chrome for Developers
30 Instant Loading with Service Workers (Chrome Dev Summit 2015)
Instant Loading with Service Workers (Chrome Dev Summit 2015)
Chrome for Developers
31 Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Chrome for Developers
32 Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Chrome for Developers
33 Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Chrome for Developers
34 Polymer - State of the Union (Chrome Dev Summit 2015)
Polymer - State of the Union (Chrome Dev Summit 2015)
Chrome for Developers
35 Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Chrome for Developers
36 Introduction to RAIL (Chrome Dev Summit 2015)
Introduction to RAIL (Chrome Dev Summit 2015)
Chrome for Developers
37 DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
Chrome for Developers
38 RAIL in the real world (Chrome Dev Summit 2015)
RAIL in the real world (Chrome Dev Summit 2015)
Chrome for Developers
39 #ChromeDevSummit talks are up - W00T! -- Polycast #34
#ChromeDevSummit talks are up - W00T! -- Polycast #34
Chrome for Developers
40 V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
Chrome for Developers
41 Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Chrome for Developers
42 Owning your performance: RAIL (Chrome Dev Summit 2015)
Owning your performance: RAIL (Chrome Dev Summit 2015)
Chrome for Developers
43 HTTP/2 101 (Chrome Dev Summit 2015)
HTTP/2 101 (Chrome Dev Summit 2015)
Chrome for Developers
44 Leadership Panel (Chrome Dev Summit 2015)
Leadership Panel (Chrome Dev Summit 2015)
Chrome for Developers
45 Build Processes, Totally Tooling Tips (S2, Ep 5)
Build Processes, Totally Tooling Tips (S2, Ep 5)
Chrome for Developers
46 Accessibility (Chrome Dev Summit 2015)
Accessibility (Chrome Dev Summit 2015)
Chrome for Developers
47 Binding to Arrays -- Polycasts #35
Binding to Arrays -- Polycasts #35
Chrome for Developers
48 HTTP2 - HTTP203
HTTP2 - HTTP203
Chrome for Developers
Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome for Developers
50 Call For Submissions - Supercharged
Call For Submissions - Supercharged
Chrome for Developers
51 Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Chrome for Developers
52 Testing AJAX with Web Component Tester -- Polycasts #37
Testing AJAX with Web Component Tester -- Polycasts #37
Chrome for Developers
53 Slack: Extended Xmas Special - Supercharged
Slack: Extended Xmas Special - Supercharged
Chrome for Developers
54 Browser testing with Travis & Sauce Labs -- Polycasts #38
Browser testing with Travis & Sauce Labs -- Polycasts #38
Chrome for Developers
55 Optimize for production with Vulcanize -- Polycasts #39
Optimize for production with Vulcanize -- Polycasts #39
Chrome for Developers
56 Highlights from Chrome Dev Summit 2015
Highlights from Chrome Dev Summit 2015
Chrome for Developers
57 Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome for Developers
58 Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Chrome for Developers
59 How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
Chrome for Developers
60 Colors – DevTools Tonight #0 (Pilot)
Colors – DevTools Tonight #0 (Pilot)
Chrome for Developers

Chrome 47 introduces new features for developers to improve web app performance and user experience. Learn how to utilize splash screens, requestIdleCallback, and improved desktop notifications to enhance your web apps.

Key Takeaways
  1. Add web app manifest to customize app launch
  2. Use requestIdleCallback to defer script execution
  3. Implement service workers for push notifications
  4. Test and optimize web app performance
💡 Utilizing browser features like splash screens and requestIdleCallback can significantly improve web app performance and user experience.

Related Reads

📰
Prediction: ServiceNow’s AI Business Triples Before 2029 – Yahoo Finance
ServiceNow's AI business is predicted to triple before 2029, offering opportunities for founders and tech leaders to invest and grow
Dev.to AI
📰
Google Signed a 22-Year Nuclear Deal. Japan Makes the Hardware Behind the Power.
Google signs a 22-year nuclear deal, shifting AI power procurement strategies, and Japan manufactures the necessary hardware
Medium · AI
📰
AI Won’t Take Your Job. Your Inability to Learn Will.
In the age of AI, learning how to learn faster and adapt continuously is key to career safety, not trying to compete with machines
Medium · AI
📰
We’re Watching the Early Stages Happen in Real Time
Witness the early stages of AI development in real-time, with significant advancements and risks emerging in the field of cybersecurity
Medium · Cybersecurity
Up next
🚨 MANUS USERS: BACK UP NOW! What You Need to Know + This Week in AI
Alicia Lyttle
Watch →