Article

October 27, 2026

Implementation of Offline-First Architecture in Web Applications with Next.js and PWA

Laura Thomazi Neumann; Daniele Aparecida Cicillini Pimenta

DOI: 10.22167/2675-6528-202601058

Article prepared by the ResumeAI tool, an artificial intelligence solution developed by the Pecege Institute focused on synthesis and writing.

Summary

The growing demand for efficient web applications in scenarios of unstable connectivity, particularly in delivery services, has driven the search for robust solutions. The impact of implementing an offline-first architecture in a Progressive Web App (PWA) developed with Next.js and React.js was evaluated, with the objective of ensuring its functional availability and efficiency under limited network conditions. The methodology was based on the construction of a PWA prototype, which employed Service Workers, advanced caching strategies, and local data persistence via IndexedDB. Performance was rigorously evaluated through automated audits with the Lighthouse tool, which allowed for the comparison of performance metrics before and after applying various optimization techniques, including code splitting and asynchronous loading. The results demonstrated a significant increase in the Lighthouse performance score, which rose from 52 to 99, accompanied by a substantial reduction in loading times and the full functionality of critical features even without a network connection. The application maintained its essential operations in offline environments, with automatic data synchronization upon re-establishing connectivity. It was concluded that the coordinated integration of Service Workers, IndexedDB, and caching strategies strengthened the operational robustness of the system, validating the technical feasibility of the offline-first approach for contexts with limited connectivity. The research contributed technical guidelines for the development of resilient web applications, suggesting future expansions for advanced synchronization mechanisms and evaluation with real users in field environments.

Keywords: Connectivity; IndexedDB; Lighthouse; Performance optimization; Service Workers.

1. Introduction

The growing digitalization of society and the expansion of e-commerce drive the demand for web applications that operate with high efficiency and availability, even in environments with limited connectivity (CHERUKURI et al., 2023). The resilience of digital systems has become a critical factor for business continuity and user satisfaction. The dependence on mobile devices and network variability, particularly in regions with unequal infrastructure, highlight the need for technological solutions that overcome traditional limitations (WARGO, 2020).

The delivery sector exemplifies this urgency, with exponential growth that led it to move approximately US$1.22 trillion globally in 2023, supporting millions of workers (STATISTA, 2024; ABRASEL, 2024). However, the effectiveness of these operations is frequently compromised by connectivity. In Brazil, about eighteen percent of the population still faces unstable internet access, especially in peripheral areas (DATAREPORTAL, 2024). This reality directly impacts the productivity of delivery drivers, who report difficulties in accessing information and updating their status in real-time (ABRASEL, 2024; DATAREPORTAL, 2024). Such challenges reinforce the need for applications that guarantee continuous functionality, regardless of network quality.

In this scenario, Progressive Web Apps (PWAs) emerge as a strategic solution, combining the advantages of web and native applications. PWAs offer advanced features such as fast loading, installability, and, crucially, offline operation (GOOGLE DEVELOPERS, 2023). The “offline-first” paradigm is central to this resilience, prioritizing the application’s functionality even without an internet connection, by storing data locally and synchronizing it upon re-establishing connectivity (WARGO, 2020). The viability of this architecture is supported by technologies like Service Workers, JavaScript scripts that act as a programmable proxy to intercept network requests and manage caching strategies, enabling the delivery of stored content even offline (GOOGLE DEVELOPERS, 2023; MDN WEB DOCS, 2024). IndexedDB, a NoSQL database integrated into browsers, allows for the persistence of large volumes of structured data on the client-side, vital for maintaining critical functionalities and facilitating subsequent synchronization (MDN WEB DOCS, 2023).

For the development of modern, high-performance user interfaces, the combination of React.js and Next.js is widely employed. React.js is a declarative, component-based JavaScript library, ideal for building dynamic interfaces (MEHUL, 2020). Next.js, a React framework, extends these capabilities with optimizations such as server-side rendering and automatic code splitting. These features are essential for improving initial loading time and overall performance, positioning Next.js as a robust choice for developing PWAs with an offline-first architecture (VERCEL, 2024). The synergy of these technologies allows for the creation of applications that are fast online and resilient offline, providing a consistent user experience.

Despite the potential of PWAs and the offline-first approach, the effective integration of these technologies with modern frameworks like Next.js and React.js still presents significant challenges in terms of performance optimization and usability under unstable connectivity conditions (WARGO, 2020; LEGARSKI; HAMZIC, 2024). The social and economic relevance of the delivery sector, directly impacted by these network limitations, reinforces the need for solutions that ensure operational continuity and user satisfaction. Thus, this work is justified by the pursuit of mitigating these gaps, evaluating the impact of implementing an offline-first architecture in a Progressive Web App developed with Next.js and React.js, with the objective of ensuring its functional availability and efficiency in limited network scenarios.

2. Material and Methods

The present study was characterized as an applied research, of an exploratory and experimental nature, as outlined by Gil (2019). The classification as applied research is justified by the search to solve a practical problem, which involved the implementation of a Progressive Web App (PWA) with an “offline-first” architecture in Next.js. The experimental nature stemmed from the construction and manipulation of a functional prototype, allowing the observation of causes and effects of the optimizations. Finally, the exploratory approach was adopted to investigate the impact of optimization techniques on web performance, evaluating new technological solutions.

The research was developed in the context of web applications for the delivery sector, an environment that demands high availability and efficiency, even under conditions of limited connectivity. The study focused on the implementation and evaluation of a functional prototype, without a specific geographical location for data collection with real users. The development environment was configured on a Windows operating system, using industry-standard tools. The unit of analysis consisted of the application prototype itself, which simulated basic delivery service management functionalities, allowing for a technical evaluation of its resilience.

The development of the prototype application was carried out using the Next.js framework, version 15.3.2, which is based on the React library for building user interfaces. The “App Router” was adopted for route definition and state management, aiming for modularity and scalability. The programming language used was TypeScript, which adds static typing to JavaScript, promoting greater robustness and security to the code. The development environment was supported by Node.js 22.16.0 and Node Package Manager (npm) 9, ensuring compatibility with the project’s dependencies.

The system architecture was based on the “offline-first” paradigm, which prioritizes application functionality even without an internet connection. For this purpose, “Service Workers” were employed as an interception layer between the interface and the server, controlling the temporary storage of resources and network requests (GOOGLE DEVELOPERS, 2023). The integration of PWA functionalities was simplified by the “next-pwa” library, which automated the generation of the “sw.js” file (responsible for the Service Worker) and the “manifest.json”, the latter containing essential metadata for application installation.

Data persistence was ensured by using the local database IndexedDB, accessed through the “idb” library, which provided a simplified interface for this technology. This approach allowed for the storage of critical information, such as authentication and order data, directly in the user’s browser. The ability to persist data locally was fundamental to ensuring access and manipulation of this information even in scenarios of no connectivity, facilitating later synchronization with the server when the connection was re-established (MDN WEB DOCS, 2023).

Cache strategies were implemented using the Workbox toolkit, which offered advanced methods for efficient cache management in PWAs. Different approaches were applied according to the resource type: “StaleWhileRevalidate” for static resources and images, allowing quick display with background updates; “Cache First” for Google Fonts, prioritizing cache loading to reduce latency; and “Network First” for API requests, seeking recent data from the network but using the cache in case of unavailability (CHERUKURI et al., 2023).

In the prototype, user registration and authentication screens were implemented, using reusable components and state management. The authentication flow was simulated locally, with the authenticated user’s data stored in IndexedDB, ensuring offline access (MDN WEB DOCS, 2023). The order creation functionality was provided by a dynamic form, allowing the registration of information such as customer name, address, and items. These orders were stored locally in IndexedDB, enabling the application to function in offline mode.

A dynamic listing of registered orders was implemented, displaying information such as customer name, address, items, and status. This listing was updated in real-time from IndexedDB, ensuring data consistency in environments with and without connectivity. The logic for status management allowed for automatic changes in order states (pending, accepted, rejected) based on user actions. These operations were performed asynchronously, with immediate interface updates and persistence in IndexedDB, following the recommendations for “offline-first” applications (MEHUL, 2020).

The delivery route visualization was implemented through integration with the Google Maps Embed API, which allowed the display of an interactive map. The integration used a dynamic “iframe”, with origin and destination parameters configured programmatically, obtained from environment variables (GOOGLE DEVELOPERS, 2023). Additionally, connectivity status detection was performed by a custom “hook”, “useNetworkStatus”, which monitored the browser’s “online” and “offline” events. This functionality enabled the dynamic display of status messages and the adaptation of the application to network availability (CHERUKURI et al., 2023).

After the implementation of the PWA functionalities and manual functional tests, a performance evaluation process was conducted. For this purpose, the Lighthouse tool, integrated into the Google Chrome browser, was used, which performs automated audits on web applications (GOOGLE DEVELOPERS, 2023). The analysis criteria were based on “Core Web Vitals”, including Performance Score, First Contentful Paint (FCP), Largest Contentful Paint (LCP), Total Blocking Time (TBT), and Cumulative Layout Shift (CLS) (CHROME DEVELOPERS, 2023). The tests were executed in a production environment, after the optimized “build” of the application.

Based on the initial Lighthouse recommendations, several optimizations were implemented to improve loading time and navigation quality. Tools like “bundle-analyzer” were configured to visualize the composition of JavaScript packages, identifying excessive dependencies. JavaScript minification and compression were ensured by the Next.js compiler (NEXT.JS, 2025). Asynchronous loading strategies, such as “afterInteractive” and “lazyOnload” for scripts, and “dynamic imports” for components (“lazy loading”), were applied to reduce the initial bundle size and speed up the “First Contentful Paint” (LEGARSKI; HAMZIC, 2024).

Despite the positive results, the research presented methodological limitations. The scope of the study focused on a single delivery application prototype, developed in a controlled environment. Due to resource constraints and access difficulties, usability tests with end-users in real-world environments were not conducted. This decision prioritized project feasibility, focusing on technical implementation and automated performance analysis. Additionally, the scope of Lighthouse optimization measures was limited to “performance” metrics, avoiding extending the text beyond what was recommended by the institution (GIL, 2019).

On the other hand, the methodology employed stood out for the use of standardized and widely accepted metrics in the literature, which contributed to the reliability of the results. The adoption of consolidated tools for performance analysis, such as Lighthouse, and compliance with web development best practices, reinforced the reproducibility of the study (GIL, 2019; CHROME DEVELOPERS, 2024). These positive methodological aspects ensured that the technical evaluation of the application was robust and aligned with software engineering standards, validating the proposed “offline-first” development approach.

3. Results and Discussion

The Results and Discussion section presents the findings from the implementation of the Progressive Web App (PWA) with an “offline-first” architecture and the applied performance optimizations, as well as a critical analysis of these results in light of existing literature. The main focus lies in demonstrating the technical feasibility of the proposed solution and evaluating the impact of the optimization strategies on performance metrics and user experience.

The implementation of the “offline-first” architecture was a central pillar of this study, based on the use of Service Workers, IndexedDB, and advanced caching strategies. Service Workers, as an interception layer between the interface and the server, were crucial for controlling the temporary storage of resources and network requests, as highlighted by Google Developers (2023). This functionality allowed the application to maintain its operability even in scenarios of limited or absent connectivity, a fundamental requirement for delivery applications in regions with unstable network infrastructure, as pointed out by DataReportal (2024) and Abrasel (2024). The `next-pwa` library simplified the integration of the Service Worker and the generation of `manifest.json`, automating the configuration of essential metadata for PWA installation and ensuring a consistent user experience across different platforms, as illustrated in Figure 1. The robustness of this approach is corroborated by Cherukuri et al. (2023), who emphasize the importance of Service Workers for enhancing the user experience in modern web applications.

Source: Original Research Data

Figure 1. Image of the content of the “manifest.json” and “sw.js” files in the source code editor.

The persistence of data locally, through IndexedDB and the `idb` library, was another vital component for the “offline-first” functionality. As presented in Figure 2, IndexedDB allowed the storage of critical information, such as authentication data and orders, directly in the user’s browser. This capability ensured access and manipulation of this information even in offline mode, facilitating subsequent synchronization with the server when the connection was re-established (MDN Web Docs, 2023). Literature, including Legarski and Hamzic (2024), recognizes IndexedDB as the most suitable solution for “offline-first” applications that need to manage large volumes of structured data and asynchronous operations. The implementation of registration and authentication screens, with data stored in IndexedDB, as shown in Figure 3, demonstrated the feasibility of maintaining login functionality and access to user information even without a connection.

Source: Original Research Data

Figure 2. Image from the application’s local database.

Source: Original Research Data

Figure 3. Authentication and storage of user registrations.

Similarly, the order creation functionality, accessible via a dynamic form (Figure 4), and the dynamic listing of registered orders (Figure 5) were designed to operate entirely offline. Orders were stored locally in IndexedDB, ensuring data consistency and status management capabilities (pending, accepted, rejected) regardless of connectivity. This approach aligns with the recommendations for “offline-first” applications by Mehul (2020), which emphasizes the need for asynchronous operations and immediate interface updates for a fluid user experience. The delivery route visualization, integrated with the Google Maps Embed API (Figure 6), although dependent on connectivity for initial map loading, was designed to display clear status messages in offline mode, adapting to network availability.

Source: Original Research Data

Figure 4. New order creation.

Source: Original Research Data

Figure 5. List of available requests.

Source: Original Research Data

Figure 6. Delivery route visualization on the map.

Cache strategies, defined in the `runtimeCaching.js` file (Figure 7) and implemented with Workbox, were essential for optimizing resource loading. The application of “StaleWhileRevalidate” for static resources and images, “Cache First” for Google Fonts fonts, and “Network First” for API requests, as per Cherukuri et al. (2023), ensured both fast content display and the retrieval of recent data when the network was available. This combination of caching strategies is fundamental for balancing performance and data freshness in PWAs, as pointed out by Chrome Developers (2024). The detection of connectivity status, through the custom `useNetworkStatus` hook (Figure 8), allowed for dynamic display of status messages and adaptation of functionalities, promoting a transparent and informative user experience, a crucial aspect for usability in environments with unstable connectivity (Biørn-Hansen et al., 2021).

Source: Original Research Data

Figure 7. Image of the content of the file “runtimeCaching.js”.

Source: Original Research Data

Figure 8. Image of the content of the file “useNetworkStatus.ts”.

The initial performance evaluation, conducted with the Lighthouse tool, revealed the application’s state immediately after the implementation of PWA functionalities, but before specific optimizations. According to Figure 9 and Table 1, the application achieved a Performance score of 52. The First Contentful Paint (FCP) was recorded at 0.7 seconds, and the Largest Contentful Paint (LCP) at 3.4 seconds. The Total Blocking Time (TBT) was 760 ms, and the Cumulative Layout Shift (CLS) was 0.06. Although the FCP was competitive, within the range recommended by Google Developers (2023), the LCP and TBT indicated significant bottlenecks, especially related to the loading and blocking of the main thread. These results, while expected for an initial prototype, were below the ideal for mature PWAs, which often exceed 70 points after optimizations (Cherukuri et al., 2023; Mehul, 2020). The blocking of the main thread, caused by long JavaScript tasks, hindered interface responsiveness, directly impacting the user experience (Google Developers, 2023; MDN Web Docs, 2023).

Source: Original Research Data

Figure 9. Lighthouse screen with PWA performance analysis.

Table 1. Preliminary Results of Performance Analysis with “Lighthouse” prior to the implementation of the optimizers.

Metric

Unit Value

Recommendation

Achievement

52

Optimize “JavaScript”, “CSS” and images

First Contentful Paint

0.7 s

Reduce image size and optimize loading

Largest Contentful Paint

3.4 s

Optimize the loading of critical resources

Total Blocking Time

760 ms

Reduce JavaScript execution and optimize code

Cumulative Layout Shift

0.06

Optimize the layout to avoid unexpected changes

Source: Original Research Data.

Lighthouse diagnostics identified several optimization opportunities, including the need to reduce JavaScript execution time (1.4 s), eliminate render-blocking resources (290 ms), enable text compression (141 KiB), reduce unused JavaScript (429 KiB), and minify JavaScript (109 KiB). These bottlenecks are common in projects using modern frameworks like React and Next.js, due to the ecosystem’s complexity and the number of dependencies (Legarski & Hamzic, 2024). Visual stability, reflected by a low CLS, was a positive point, indicating a more predictable user experience (Chrome Developers, 2023). Identifying these points was crucial for directing subsequent optimization strategies, aiming to improve application efficiency in different usage scenarios.

In response to Lighthouse recommendations, several optimizations were implemented. The installation of tools such as `bundle-analyzer` (Figure 10) and its configuration in `next.config.js` (Figure 11) allowed for a detailed visualization of the size and composition of JavaScript packages, identifying excessive dependencies and duplicate modules. This analysis is fundamental to reducing the volume of code transferred and the processing load on the client, as per Legarski and Hamzic (2024). JavaScript minification and compression were natively ensured by the Next.js compiler in a production environment (Next.js, 2025), removing unnecessary characters from the source code and contributing to the reduction of bundle size.

Source: Original Research Data

Figure 10. Installed packages.

Source: Original Research Data

Figure 11. “Bundle analyser”.

Advanced asynchronous loading strategies, such as `afterInteractive` and `lazyOnload` for scripts, and `dynamic imports` for components (“lazy loading”), were applied to reduce the initial bundle size and accelerate the First Contentful Paint. These policies allow non-critical scripts and components to be loaded only after the initial user interaction or after the complete page load, decreasing the Total Blocking Time and improving perceived interactivity (Mehul, 2020; Google Developers, 2023). The implementation of “lazy loading” for heavier components, such as maps, promoted automatic code splitting, a widely recommended practice for modern React applications (Legarski & Hamzic, 2024). Finally, the definition of “cache headers” for static resources ensured efficient reuse of JavaScript files on subsequent visits, aligning with performance best practices for PWAs and contributing to significantly lower loading times after the first access (Wargo, 2020).

After the implementation of these optimizations, a new Lighthouse analysis was conducted, revealing significant improvements in performance metrics. According to Figure 12 and Table 2, the application’s Performance score rose from 52 to 99, an expressive leap that places it in the “very good” or “excellent” category for PWAs (Google Developers, 2023). The First Contentful Paint (FCP) was reduced from 0.7 seconds to 0.4 seconds, a decrease of 42.9%, indicating a much faster initial interface loading. The Largest Contentful Paint (LCP) saw an even more drastic reduction, going from 3.4 seconds to 0.6 seconds, an improvement of 82.4%. This result is particularly relevant, as LCP is one of the main indicators of user experience, and the value of 0.6 seconds is well below the 2.5-second threshold considered “good” by Core Web Vitals (Chrome Developers, 2023).

Source: Original Research Data

Figure 12. Analysis of the “Lighthouse” after optimizations.

Table 2. Comparative Analysis

Metric

Before

After

Variance

Technical reading

Achievement

52

99

+47 points

Improvement compatible with elimination of bottlenecks in Javascript and blocking resources; (GOOGLE DEVELOPERS, 2023);

First Contentful Paint (FCP)

0.7 s

0.4 s

-0.3 s (-42.9%)

Improvement in initial display, generally linked to less blocking and smaller “payload”; (GOOGLE DEVELOPERS, 2023);

Largest Contentful Paint (LCP)

3.4 s

0.6 s

-2.8 s (-82.4%)

Moved from a “problematic” zone to a “very good” one; LCP “good” tends to be ≤ 2.5 s (CWV reference); (GOOGLE DEVELOPERS, 2023);

Total Blocking Time (TBT)

760 ms

0 ms

-760 ms

Removed lock from the main “thread”;

Cumulative Layout Shift (CLS)

0,06

0,066

+0,006 (+10%)

Slight worsening, but remains low; CLS “good” tends to be < 0.1 (GOOGLE DEVELOPERS, 2023);

Source: Original Research Data.

The Total Blocking Time (TBT) was completely eliminated, decreasing from 760 ms to 0 ms, which represents the removal of the main thread’s blocking and a substantial improvement in interface responsiveness. This TBT elimination is a direct indicator of the effectiveness of asynchronous loading strategies and JavaScript optimization, which allowed the browser to respond immediately to user interactions. The Cumulative Layout Shift (CLS) showed a slight worsening, increasing from 0.06 to 0.066, a 10% rise. However, the value of 0.066 is still considered low and within the 0.1 limit for a “good” CLS (Google Developers, 2023), meaning the page’s visual stability remained satisfactory, with few unexpected layout changes during loading. These results corroborate recent studies that point to the elimination of blocking resources and progressive loading as central strategies for high-performance web applications (Cherukuri et al., 2023). Practical perception in local interface tests also confirmed a shorter loading time and greater navigation fluidity, validating the quantitative gains.

The consolidation of the “offline-first” approach in this research was based on the coordinated integration of three central technical pillars: Service Workers, IndexedDB, and advanced caching strategies. The results obtained demonstrated that the use of Service Workers as an intermediate request interception layer not only enabled the application to function in scenarios of total absence of connectivity (according to local tests), but also efficient management of critical resources, reducing immediate network dependency. This characteristic has been widely recognized in the literature as essential for PWA applications aimed at contexts with unstable connectivity, such as delivery applications (Cherukuri et al., 2023; Google Developers, 2023).

The use of IndexedDB as a local persistence mechanism proved fundamental to ensure the continuity of basic operations, such as authentication and order manipulation, even in “offline” mode. IndexedDB offered support for large volumes of structured data and asynchronous operations, being considered the most suitable solution for modern “offline-first” applications (MDN Web Docs, 2023; Legarski; Hamzic, 2024). The data obtained in this research confirmed Wargo’s (2020) premise that the offline-first architecture not only ensures availability but also results in gains in perceived performance. Additionally, the cache strategies configured in the execution environment allowed for the selective storage of static resources, fonts, and API responses, reducing loading time and improving the user experience in subsequent accesses. The literature indicated that the combination of cache strategies represented a consolidated practice for balancing performance and data updates in PWA applications (Chrome Developers, 2024). Thus, the results obtained validate the technical and practical viability of the “offline-first” approach, demonstrating its adherence to contemporary recommendations for resilient web development.

Based on the results obtained and the comparative performance analysis, it was possible to propose a set of technical guidelines for the development of applications oriented towards the “offline-first” approach. Firstly, the systematic adoption of Service Workers from the initial project phases was recommended, allowing the application architecture to be planned considering limited connectivity scenarios, rather than treating them as exceptions. Recent studies indicate that applications designed with this premise exhibit greater robustness and a lower rate of failures perceived by end-users (Cherukuri et al., 2023). Furthermore, the results highlight the importance of implementing clear and consistent visual “feedbacks” to inform the user about the application’s connectivity status. The literature points out that the absence of explicit communication in “offline” scenarios compromises the user experience, even when the application remains functional (Legarski; Hamzic, 2024). Finally, the continuous adoption of performance analysis tools, such as Lighthouse, was recommended as part of the development cycle, ensuring constant monitoring and progressive evolution of the application’s performance (Vercel, 2023; Chrome Developers, 2024).

Despite the positive results obtained, this research presented methodological limitations that should be considered in the interpretation of the findings. The first limitation refers to the scope of the study, which focused on a single delivery application prototype, developed in a controlled environment. Usability tests with delivery drivers were removed from the scope of this work due to resource constraints in making the application available to end-users and the difficulty of accessing this specific audience during the development period. This decision was made to ensure the project’s feasibility within the established deadlines and conditions, without compromising the quality of the other stages. Thus, the focus of this research remained on the technical implementation of the application, automated performance analysis, and the validation of the main “offline-first” optimization techniques in Next.js.

Thus, another limitation identified concerns the absence of tests with end-users in real usage environments, which prevents a more in-depth evaluation of the user experience under different connectivity conditions. Additionally, although the Lighthouse tool has provided other analyses and metrics, the scope of the optimization measures in this work focused only on “performance” metrics, so as not to make the text longer than recommended by the institution’s rules. On the other hand, a positive aspect of the methodology highlighted was the use of standardized and widely accepted metrics in the literature, as well as the adoption of consolidated tools for performance analysis. These factors contributed to the reliability of the results and the reproducibility of the study, aligning with the best practices recommended for applied research in web development (Gil, 2019; Chrome Developers, 2024).

The “offline-first” approach implemented achieved the objective of maintaining the application’s essential functionalities even in scenarios of limited connectivity. The integration of Service Worker and caching strategies resulted in greater loading predictability and availability of critical resources. Local storage with a browser database ensured the persistence of information necessary for the continuity of basic operations. Connectivity detection and interface “feedbacks” contributed to reducing usage uncertainties by clearly informing the user about the network status. The results obtained responded to the general objective by demonstrating, in a practical way, the technical feasibility of an application resilient to connection instability. The specific objectives were met by reviewing the pertinent techniques, implementing the prototype with “offline” support, evaluating performance through automated metrics, and organizing technical guidelines derived from the implementation. As a main inference, it was concluded that the adoption of an “offline” oriented architecture, when planned from the project setup, favored operational stability and improved the perceived system efficiency. It was observed that the model’s effectiveness depended on the balance between local data and subsequent updates, which required clear consistency criteria and synchronization rules. It was recognized that the main limitation of this study was related to the scope of the evaluation, which, being automated, was sufficient to validate performance and technical compliance, but did not replace the measurement of real experience in prolonged use. Finally, this work concluded with the confirmation that the applied strategy proved adequate for the proposed context and can be expanded in future continuity, focusing on advanced synchronization mechanisms and evaluation with real users in a field environment.

4. Conclusion

It is concluded that the objective was achieved, demonstrating the technical viability of implementing an offline-first architecture in a Progressive Web App developed with Next.js and React.js. The application ensured its functional availability and efficiency in limited network scenarios, as evidenced by the elevation of the Performance score in Lighthouse from 52 to 99. The integration of Service Workers, IndexedDB, and advanced caching strategies was crucial for data persistence and the maintenance of essential functionalities, even in the absence of connectivity. Code optimization and asynchronous loading resulted in significant improvements in loading times and interface responsiveness, validating the premise that an offline-first architecture, when well-planned, strengthens the operational robustness of the system.

However, this study presented important limitations. The research focused on a prototype delivery application in a controlled environment, and the user experience evaluation was performed exclusively by automated metrics, without tests with end-users in real usage environments. Resource constraints and access to delivery personnel prevented usability tests in the field, which limits a more in-depth analysis of usability under varied connectivity conditions. For future studies, it is suggested to expand this research by focusing on advanced data synchronization mechanisms, as well as including evaluations with real users in a field environment to validate the prolonged usage experience and the effectiveness of the solution in practical scenarios.

Bibliographic References

ABRASEL. Associação Brasileira de Bares e Restaurantes. Relatório de Mercado 2024. Disponível em: https://abrasel.com.br/biblioteca. Acesso em: 28 jan. 2026.

BIØRN-HANSEN, A.; MAJCHRZAK, T. A.; GRØNLI, T.-M. Progressive Web Apps: The possible web-native unifier for mobile development. Proceedings of the 13th International Conference on Mobile Software Engineering and Systems. [S. I.]: IEEE, 2021. Disponível em: https://ieeexplore.ieee.org. Acesso em: 28 jan. 2026.

CHERUKURI, B. R. et al. Progressive Web Apps (PWAs): Enhancing User Experience through Modern Web Development. International Journal of Science and Research (IJSR), [S. I.], 2023. Disponível em: https://www.ijsr.net. Acesso em: 28 jan. 2026.

CHROME DEVELOPERS. Chrome DevTools. 2023. Disponível em: https://developer.chrome.com/docs/devtools/. Acesso em: 28 jan. 2026.

CHROME DEVELOPERS. Web Performance and Core Web Vitals. 2024. Disponível em: https://developer.chrome.com/docs/web-platform/. Acesso em: 28 jan. 2026.

DATAREPORTAL. Digital 2024: Brazil. 2024. Disponível em: https://datareportal.com/reports/digital-2024-brazil. Acesso em: 28 mai. 2025.

GIL, A. C. Métodos e técnicas de pesquisa social. 7. ed. São Paulo: Atlas, 2019.

GOOGLE DEVELOPERS. Service Workers: an Introduction. 2023. Disponível em: https://web.dev/learn/pwa/service-workers/. Acesso em: 28 jan. 2026.

LEGARSKI, R.; HAMZIC, N. The Comprehensive Guide to Website Design, Web Development, and Web Marketing: Online & Offline Strategies, Programming, Software, Devices, and Applications. [S. I.]: Solveforce, 2024. Disponível em: Google Books. Acesso em: 28 jan. 2026.

MDN WEB DOCS. IndexedDB API. 2023. Disponível em: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API. Acesso em: 28 jan. 2026.

MDN WEB DOCS. Service Workers API. 2024. Disponível em: https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API. Acesso em: 28 jan. 2026.

MEHUL, M. Advanced Web Development with React: SSR and PWA with Next.js Using React with Advanced Concepts. [S. I.]: Walter de Gruyter GmbH, 2020. Acesso em: 28 jan. 2026.

NEXT.JS. Next.js Compiler (SWC) – Architecture. 2025. Disponível em: https://nextjs.org/docs/architecture/nextjs-compiler. Acesso em: 26 jan. 2026.

STATISTA. Global Online Food Delivery Market Report. 2024. Disponível em: https://www.statista.com. Acesso em: 28 jan. 2026.

VERCEL. Next.js Documentation – Optimizing Performance. [S. I.]: Vercel Inc., 2024. Disponível em: https://nextjs.org/docs/app/building-your-application/optimizing. Acesso em: 28 jan. 2026.

WARGO, J. Learning Progressive Web Apps. [S. I.]: Pearson Education, 2020. Disponível em: https://learningpwa.com/ ou Google Books. Acesso em: 28 mai. 2025.

Article originating from the Final Course Work of the Specialization in Software Engineering of the MBA USP/Esalq

To learn more about the course, click here and access the MBX Academy platform

You may also like

Executive Mba In Leadership And Management

November 23, 2026

Improvements in the efficiency of a secondary biological sludge drying plant

The management of industrial solid waste, especially secondary biological sludge, represented an operational and strategic challenge for a company in the pulp and paper sector. A secondary biological sludge drying plant, installed to meet environmental requirements and reduce costs, operated with low efficiency and high unavailability. The objective of this study was to evaluate and propose a set of actions to increase the operational availability of the plant, ensure the integral processing of the generated sludge, and reduce treatment and transportation costs, in addition to mitigating environmental risks. To this end, an analysis of the root causes of low efficiency was carried out, using tools such as the cause-and-effect diagram (Ishikawa) and the “5 whys” analysis, and hypotheses were tested to identify the most impactful factors. Three main root causes were identified: addition of low-load effluent to the process, absence of a dedicated maintenance team, and lower consistency of dewatered sludge. The proposed countermeasures, which included stopping the addition of effluent, hiring a maintenance team, and testing polymers, had a monthly implementation cost of R$ 35,000.00. An annual reduction in operating expenses of up to R$ 1,800,000.00 and maintenance costs of R$ 600,000.00 was estimated, in addition to a 25% reduction in operational unavailability. It was concluded that the proposed measures are viable, quick to implement, and capable of ensuring the integral processing of secondary biological sludge, strengthening the company’s ESG strategy and ensuring environmental compliance.

Keywords: Operational costs; Operational efficiency; ESG; Biological sludge; Sludge drying.

Data Science And Analytics For Operations

November 19, 2026

Polyp-YOLO: an efficient, low-latency detector for polyps in colonoscopies

The early detection of colorectal polyps is crucial for the prevention of colorectal cancer, and real-time computer-aided detection (CADe) systems have shown gains in endoscopic practice. The objective was to develop and validate a lightweight colorectal polyp detector, based on the YOLO architecture, capable of operating on restricted hardware with high precision and low latency. The methodology used public datasets of endoscopic images, partitioning the Kvasir-SEG dataset for training and internal validation, and CVC-ClinicDB and ETIS-Larib Polyp DB for cross-dataset evaluation. Lightweight variants of the YOLOv8, YOLO11, and YOLO26 families with 640×640 pixel input were evaluated. A grid search tested 70 combinations of optimizers and activation functions, and identified AdaBelief and LeakyReLU as the configuration with the best generalization. The optimization pipeline applied unstructured pruning, knowledge distillation, and fine-tuning. The optimized YOLO11n-seg model outperformed the higher-capacity architecture (YOLO26m-seg) in mAP50 and showed similar performance in F1-Score, operating with approximately seven times fewer parameters. It achieved an mAP50 of 0.7929 and an F1-Score of 0.7514 on the ETIS-Larib dataset, and fast inference was demonstrated in different formats, with real-time latencies. The explainability of predictions was validated by Grad-CAM activation maps. The proposed solution demonstrated itself to be a promising experimental tool for diagnostic support, with technical feasibility for integration into environments with reduced computational power, although it requires future clinical validation.

Keywords: Computer-aided detection; Edge computing; Hyperparameter optimization; Endoscopic image segmentation; Medical computer vision.

Data Science And Analytics For Operations

November 19, 2026

Multi-touch Attribution in E-commerce: A Comparison between Markov Chains and Last-Click

The research investigated Multi-touch Attribution (MTA) Models in e-commerce, seeking to overcome the limitations of the Last-Click model, widely used in the market. The objective was to compare the performance of first-order Markov Chains with Last-Click and Position-Based approaches, identifying the value of assistance channels frequently ignored. To this end, Markov Chain algorithms were applied to a large volume of purchase journey data from the Google Merchandise Store, extracted via BigQuery. The study probabilistically mapped the purchase journey and calculated the Removal Effect to quantify channel relevance. The results demonstrated that data-driven models identified the strategic role of discovery (awareness) and assistance channels, which Last-Click neglected in 65% of complex journeys. Simulated financial analysis indicated an approximate 28% hidden efficiency in Cost Per Acquisition (CPA) for Paid Search, compared to the Last-Click model. It was concluded that Markov Chains allowed for a more accurate mapping of purchase journeys, validating the technical feasibility of the modeling and providing evidence for more efficient budget allocation in digital media, mitigating the risk of early divestment in crucial channels.

Keywords: Assistance channels; Data science; E-commerce; Digital marketing; Media optimization.

Project Management

November 19, 2026

Integrated Software for Operational Communication and Control: Practical Evidence in a Medium-Sized Company

The study analyzed the impacts of the lack of integration between commercial and operational modules of an integrated management software (ERP/CRM) in a medium-sized company in the mechanical engineering sector. The main objective was to evaluate practical evidence of communication and operational control optimization, identify bottlenecks, and formulate improvement proposals. A qualitative-quantitative approach was adopted through a single case study with documentary research, based on the extraction and filtering of historical task records from the Bitrix24 software and statistical correlation analysis between workload and allocated team. Based on the diagnosis, an action plan structured in the 5W2H tool was developed. The results revealed that 54.4% of the registered tasks consisted of duplicate, test, or practically useless records, generated by manual insertion during the scope transition between commercial CRM and engineering. It was also demonstrated that the increase in the commercial team linearly accompanied the growth of inefficient tasks, polluting the database and masking the organization’s real productive capacity. It was concluded that the automation of workflows and native integration between modules are essential to mitigate operational and financial risks, providing replicable guidelines for data governance in small and medium-sized enterprises.

Keywords: System Customization; Enterprise Resource Planning (ERP); Task Management; Management Software.

Project Management

November 19, 2026

Supervised learning in voltammetric quantification with electrochemical sensors

The application of supervised learning in the voltammetric quantification of paraquat in artificial urine was evaluated. The study aimed to quantitatively assess the predictive performance of supervised learning models compared to a univariate “baseline”, preserving independence between devices in the training and testing sets. The research was conducted as an applied case study, processing data from four physical devices, each evaluated under a blank condition and six paraquat concentration levels, totaling 28 square wave voltammetry (SWV) curves. A computational “pipeline” integrated automated file reading, organization of curves into current-potential matrices, generation of potential maps, and device-specific blank correction. Five approaches were considered: conventional univariate calibration, predictive univariate “baseline”, partial least squares (PLS) regression, support vector regression (SVR), and random forest (RF). Predictive evaluation was performed using device-grouped cross-validation. PLS showed the best predictive performance for curves from a device not used in training, with an R² of 0.7981. RF exhibited intermediate performance, while SVR and the predictive univariate “baseline” showed inferior and similar performance between themselves. It was concluded that a compact multivariate representation of the voltammetric profile was more favorable for inter-device prediction than increasing model flexibility under the studied conditions. Grouped validation preserved independence, but the limited number of devices restricts the generalization of results.

Keywords: Supervised learning; Paraquat; PLS; Electrochemical sensors; Square wave voltammetry.

Project Management

November 19, 2026

Improvement of Inventory Management via Lean Six Sigma: Study in the Paper Industry

Organizations seek methodologies to reduce waste, increase efficiency, and become more competitive, promoting sustainable improvements in their processes. In this context, the study aimed to apply the Lean Six Sigma methodology, through the DMAIC cycle, to improve inventory management in a company in the paper industry manufacturing pneumatic hoses, aiming to increase the accuracy between physical and systemic inventories and improve the visual management of parts storage. The research was developed from the collection and analysis of data extracted from the company’s ERP system. Tools such as SIPOC, Ishikawa Diagram, and 5 Whys were used to define and identify the root cause of the problem. As improvement proposals, a Digital Kanban system and an adaptation of the Two-Bin system, called the Three-Bin System, were implemented, in addition to the development of standardized operating procedures and the establishment of control mechanisms. The results demonstrated a significant improvement in inventory accuracy, raising the lowest identified index from 28% to 80%, and detected discrepancies between systemic and physical records equivalent to R$ 134,335.53. It was concluded that the application of Lean Six Sigma, combined with Project Management, represented an effective approach for conducting operational improvement projects, contributed to increased reliability of inventory information, to the improvement of material control processes, and to the strengthening of the organization’s operational management.

Keywords: Inventory accuracy; DMAIC; Visual management.

Data Science And Analytics For Operations

November 19, 2026

Predictive Analysis Methodology for Performance Optimization in E-commerce: Correlation between Public Data and Paid Media

A predictive analysis methodology was developed for e-commerce, integrating transactional data and public search trends. The objective was to develop and validate a predictive model, based on machine learning algorithms, capable of correlating organic search trends with sales performance and paid media costs in the Beauty and Health category of Brazilian e-commerce. The Brazilian E-Commerce Public Dataset by Olist and data from Google Trends were used, processed in Python with the Random Forest Regressor algorithm. A moderate inverse correlation (r = -0.43) with a seven-day lag was identified between organic search volume and purchase. Initial models, based solely on behavioral variables, presented insufficient metrics (R² = -0.47; MAE of R$ 2,120.54). The incorporation of microeconomic (average ticket and shipping) and macroeconomic (exchange rate and Ibovespa index) variables raised the R² of the final model to 0.29, with an MAE of R$ 1,489.63, representing a 24.7% reduction in error compared to the baseline. Temporal cross-validation showed that, in periods of mature operation (2018), the model achieved an R² of 0.42. It was concluded that isolated search volume explains the moment of consumer interest, but not the financial magnitude of sales, making the fusion with transactional and economic data mandatory for predictive viability.

Keywords: Beauty and Health; Consumer Behavior; Google Trends; Machine Learning; Time Series.