Talks
Speakers
Events
Topics
Contribute
Search
Sign in
Search
Home
Talks
Speakers
Events
Topics
Contribute
Leaderboard
Use
Analytics
Sign in
search talks for
⏎
Suggest modification to this talk
Title
Description
Rails 8 will simplify PWA development by generating essential PWA scaffolding by default. In his #RailsWorld talk, Emmanuel Hayford covers PWA basics, the service worker lifecycle, offline strategies via background sync, and the CacheStorage API for cross-device performance. Thank you Shopify for sponsoring the editing and post-production of these videos. Check out insights from the Engineering team at: https://shopify.engineering/ Stay tuned: all 2024 Rails World videos will be subtitled in Japanese and Brazilian Portuguese soon thanks to our sponsor Happy Scribe, a transcription service built on Rails. https://www.happyscribe.com/
Date
Slides URL
For optimal experience, please provide the URL of the slides. Speakerdeck.com is recommended as it allows us to embed the slides with a player on the site.
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the video titled "Progressive Web Apps for Rails Developers," Emmanuel Hayford discusses the advantages and development of Progressive Web Apps (PWAs) within the Ruby on Rails framework, particularly with the upcoming Rails 8. Key points covered include: - **Introduction to PWAs**: Hayford emphasizes the significance of PWAs, highlighting their capability to maintain app availability without an internet connection, use push notifications for user engagement, and implement caching systems for efficient asset delivery. - **Benefits of PWAs Over Native Apps**: He outlines the drawbacks of traditional app development, especially concerning app store review processes, and illustrates how PWAs eliminate these issues, providing cost-effective solutions for app development. - **Successful PWA Examples**: Companies like Tinder and Pinterest showcase substantial improvements in performance and engagement, with Tinder reducing load times significantly and Pinterest witnessing a 60% increase in user interaction following their PWA implementation. - **Building a PWA in Rails 8**: Hayford details the essentials for constructing a PWA, which include a web application manifest file, a service worker, and a secure context (HTTPS). Rails 8 simplifies this process by automatically generating necessary files when a new app is created. - **Manifest and Service Worker**: He explains the purpose of the manifest file in making the app installable and the role of the service worker as an intermediary that manages caching and background tasks. - **Cache API vs. HTTP Cache**: The advantages of using the Cache API are presented, particularly its programmatic control over resources, which is critical for providing reliable offline experiences. - **Offline Functionality**: A step-by-step approach is provided to implement offline functionality, including caching strategies, handling fetch events, and managing fallbacks for offline content. - **Background Sync and IndexedDB**: Hayford introduces the Background Sync API, allowing apps to send data to servers when users regain connectivity, and discusses using IndexedDB for storing user data while offline. - **Push Notifications**: Although not fully covered in the talk, he outlines the basic workflow required to implement push notifications in PWAs and mentions the upcoming Action Notifier framework in Rails 8.1 that simplifies notifications. In conclusion, Hayford presents PWAs as a powerful tool for Rails developers, poised to simplify app construction while enhancing user experience. The talk serves as an introduction to building functional PWAs using the Ruby on Rails framework, reinforcing the benefits of adopting this approach in modern web development.
Suggest modifications
Cancel