Going offline with Progressive App Development

This is the second post of the series “Going offline with Progressive Web Apps”

In the previous post, we showed an approach to offer offline support to a progressive app development, using Service Workers (SW).

This time we are going to cover other interesting aspects of an offline application, such as the web manifest and how to handle requests while offline (say Google Analytics or other API calls).

Nowadays, Service Workers are supported only in Chrome, Firefox and Opera. Therefore in this post we will cover how to use the application cache in those browsers without SW support during the progressive app development. This way we can ensure offline support for most of the browsers.

 

Application Cache: an alternative to cache resources

If we want our webapp to have offline support, it should be for every (or most) devices, not just for those with the latest technology. That’s part of being progressive. Fortunately, as recommended by Patrick Kettner, we can use appcache which is available in most browsers, including Safari and IE.

This technology is deprecated in favor of SW, but it will allow us to view our site when offline. It needs a manifest to tell the browser what files need to be cached. Once again, we can manually create the file following the docs, or generate it using a tool like appcache-manifest.

This command will generate it for us:

However, the problem with the appcache API is it must be declared in the html tag at load time, it cannot be injected dynamically.

What this means is, if Service Workers are available and the appcache is always used, then we will end up having all the resources twice. In order to avoid this, we can dynamically create an iframe which loads an html that only references the manifest file (only when SW are not supported):

Also, we need to add a condition to our registration code, in order to load the iframe:

Having that, we can check in Safari how it looks. There isn’t a Service Worker section, but an Application Cache section:

Progressive app development

In addition, if you check that in Chrome, the application cache should be empty.

Read the full article about progressive web apps development in UruIT's blog.

27 Comments

  • <a href="http://www.supplementguidesg.net/hcg-complex-drops.html">Complex Diet Drops (HCG complex diet drops) @ supplementguidesg</a>

  • Fleur Mystere blends the grandeur of haute couture with the playfulness of a child’s imagination. Our chief creator, Aparna Velagapudi, endeavors to ensure girls look majestic during memorable occasions.

  • يعد إتقان قواعد التصوير أمرًا بالغ الأهمية لكل مصور يسعى إلى تحسين مستواه ، وتشير قواعد التصوير الفوتوغرافي إلى القواعد التي تستند إليها الصور الفوتوغرافية ، أي كيفية وضع العناصر المختلفة جنبًا إلى جنب في صورة ما. طريقة التقارب: يتم ترتيب العناصر المختلفة داخل الإطار جنبًا إلى جنب لإنشاء توازن طبيعي في الصورة. تنطبق قواعد إنشاء الصور الفوتوغرافية على جميع الفنون المرئية مثل: الرسم التوضيحي والتصميم وما إلى ذلك.
    بمجرد أن يتقن المصور قواعد إنشاء الصور الفوتوغرافية ، سوف يكتشف الأسرار التي تميز بعض الصور عن غيرها ، ويمكن لهذه القواعد أن تحول صورة عادية إلى عمل فني احترافي. تتمثل فكرة اختيار زاوية التصوير في زيادة التفكير في تكوين الصورة. للحصول على صور تبرز من بين الحشود ، من الأفضل تطبيق قواعد التصوير على الموضوع الذي يختاره المصور.

  • It seems like you're interested in learning about Progressive App Development and potentially taking your application offline. Progressive App Development refers to an approach where web applications are designed to provide a consistent experience across different devices and network conditions.

  • It sounds like you're interested in learning about Progressive App Development and how to take your application offline. Progressive Web Apps (PWAs) are web applications that leverage modern web technologies to provide a native app-like experience, including the ability to work offline.

  • It seems like you want to explore the concept of "going offline" in the context of progressive app development. Progressive Web Apps (PWAs) are web applications that offer a native app-like experience while being accessible through web browsers.

  • "Going offline with Progressive App Development" refers to the approach of developing Progressive Web Apps (PWAs) that can function even when users are not connected to the internet. Progressive Web Apps are a type of web application that leverages modern web technologies to provide a seamless and engaging user experience, combining the best of both web and mobile app worlds.

  • When a progressive app is designed to work offline, it means that users can still access and interact with the app's content and features even when they are not connected to the internet. This is achieved through various technologies and strategies, such as caching data and assets, using service workers, and implementing offline-first approaches.

  • Going offline with Progressive App Development" likely refers to the concept of creating progressive web apps (PWAs) or mobile apps that are designed to work offline or with limited connectivity.

  • Service workers are a key technology behind offline functionality in PWAs. They are background scripts that run separately from the web page and can intercept network requests.

  • Progressive web apps are web applications that provide a seamless experience to users regardless of their device or network conditions. They use modern web technologies to offer features commonly associated with native mobile apps, such as fast loading, push notifications, and offline capabilities.

  • "Going offline with Progressive App Development" refers to the process of developing a progressive web app (PWA) that can function offline or with limited connectivity. PWAs are web applications that combine the best of both web and mobile app experiences, offering features like offline access, fast loading times, and the ability to be added to the home screen of a user's device.

  • Service workers are a key component of PWAs that enable offline capabilities. They are background scripts that run separately from the main web page and can intercept network requests, cache resources, and provide a way to handle offline scenarios.

  • Es una calidad de publicación maravillosa. Gracias por compartir un contenido tan interesante.

  • I really enjoyed seeing you write such great articles. And I don't think I can find anywhere else.

  • &iexcl;Hola caballeros! Conoce a Aris, chica escort de <a href="https://ar.oklute.com/escorts/cordoba/">Putas en C&oacute;rdoba</a> con una personalidad natural, encantadora y mucho m&aacute;s. Ofrezco servicios de masaje 69, franc&eacute;s natural, COB y fiestera a caballeros educados y generosos. Para cualquier consulta visita aqu&iacute;. Espero tener la oportunidad de jugar contigo pronto.

  • a href="https://bo.oklute.com/escorts/santa-cruz/">damas de compa&ntilde;&iacute;a Santa Cruz</a> son acompañantes profesionales que ofrecen una gama de servicios a clientes que buscan experiencias íntimas y personales. Provienen de diferentes orígenes y poseen diferentes personalidades, apariencias e intereses, lo que facilita a los clientes encontrar la pareja perfecta para sus preferencias.

  • When you start discovering my awesome elegance from inside, you will basically become wonderstruck to view that with nearer looks. My milky white hip and legs and the outlet situated between will basically put on the reasoning nine when you become involved greatly with me in the bed.

  • I appreciate the thoughtfulness and care with which you approached your subject matter.

  • Your article has left a lasting impression on me, and I am grateful for the opportunity to learn from your work.

  • I'm glad to find this post very helpful for me. because there is a lot of information I always love to read quality content and this I found in your posts.

  • This is really amazing article. Thanks a lot for sharing wonderful information Thank you so much.

  • I am dependably up for the best time. I am splendid, physical and wonderful; this high-class show constantly needs beguiling. I have gone in body massage, knows how to stroke your body and shake your existence surely understood. I am the short liberal character.

  • Prepare for the Appian ACD300 exam with our comprehensive collection of questions and answers. Designed to enhance your understanding and boost your confidence, our materials cover key concepts and practical applications essential for success. Each question simulates real exam conditions, ensuring you’re well-equipped to tackle the test. Dive into detailed explanations for each answer to reinforce your knowledge and clarify any uncertainties. Whether you're a beginner or looking to refine your skills, our resources will guide you toward achieving your certification goals. Start your journey to success with our expertly crafted exam prep today!

  • Great article, lots of information to read. no longer update thanks

  • بهترین رنگ سرامیک کف پذیرایی

    با گسترش مفهوم طراحی داخلی و دسترسی به گسترده‌ترین مجموعه‌های رنگی، انتخاب بهترین رنگ سرامیک کف پذیرایی تبدیل به یک مسئله حیاتی شده است. رنگ سرامیک کف پذیرایی نه تنها تأثیر زیبایی‌شناختی فضا را افزایش می‌دهد بلکه بر احساسات و مزاج افراد تاثیر دارد. از طرفی، هماهنگی با دیگر عناصر دکوراسیونی و نورپردازی نیز نقش مهمی در انتخاب رنگ سرامیک کف پذیرایی دارد. در این مقاله، به بررسی بهترین رنگ سرامیک کف می‌پردازیم.

  • I am thankful for the passion and enthusiasm you bring to your writing.

Add a Comment

As it will appear on the website

Not displayed

Your website