Background Script Caching for Web App Offline Sync

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems provide limited functionality to users accessing web applications in areas with limited or spotty Internet access, as they often restrict functionality until a stable connection is reestablished, and lack effective data synchronization between devices and servers.

Innovation Solution

A background page script registers multiple webpages on a device, caches actions performed while offline, and transmits them to a host server upon regaining Internet access, ensuring seamless synchronization and maintaining user interaction during intermittent connectivity.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If the device caches actions locally while offline, then user interaction functionality is maintained during offline periods, but data synchronization with the server is delayed until reconnection

Engineering Contradiction:
Improveuser interaction functionalityVSAvoiddata synchronization delay
Core Design Contradiction:
Ease of operationVSLoss of time

Solution Approach 1:

The system performs preliminary actions by caching user interactions locally in the database before offline periods end. The background page script registers webpages and stores their actions in the database during offline states, enabling continuous user interaction without immediate server communication. When the device reconnects, the pre-cached actions are automatically transmitted for synchronization.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If the system transmits all cached actions immediately upon reconnection, then data synchronization is achieved quickly, but network bandwidth is consumed in a single burst

Engineering Contradiction:
Improvedata synchronization speedVSAvoidnetwork bandwidth consumption
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The system implements periodic action by transmitting cached actions in manageable batches rather than all at once. The background page script retrieves and transmits actions from the database in organized sequences, allowing synchronization to occur over multiple transmission cycles. This approach maintains fast synchronization while distributing network bandwidth consumption across different time periods.

Inventive Principle:
Principle #19Periodic action

3Reliability

If multiple webpages are registered with the background script, then comprehensive action tracking is achieved across all pages, but system complexity increases

Engineering Contradiction:
Improveaction tracking completenessVSAvoidregistration system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The background page script implements universality by serving multiple functions: it registers multiple different webpage types (email, document processing, multimedia, social media, spreadsheet, presentation, game, image editing, video editing applications), tracks actions from all registered pages, manages the database operations, and handles transmission coordination. This single multi-functional component achieves comprehensive action tracking without requiring separate systems for each webpage type.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentEP2751718B1System and method for synchronization of actions in the background of an application
Publication Date: 2019.02.13 GOOGLE LLC
  • EP2751718B1 patent drawingFigure 1
  • EP2751718B1 patent drawingFigure 2
  • EP2751718B1 patent drawingFigure 3

AI summary

A background page script is executing on a device. A plurality of webpages are executing on the device. The plurality of webpages register with the background page script. An action generated by one of the plurality of webpages is cached in a database. In response to a determination that the device is in an online state and that the one of the plurality of webpages is no longer registered, the background page script retrieves the action from the database and transmits the action.