ECMAScript Local Storage Versioning for Web Load Speed

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current methods for website and client interaction are inefficient due to the need for multiple requests to retrieve and update ECMAScript files, which are not easily updateable and can lead to unnecessary server requests and caching issues.

Innovation Solution

Storing ECMAScript files and their version numbers in an HTML5 local storage database on the client, allowing for comparison with server versions and updating only when necessary, thereby reducing the number of requests and improving loading speed.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If ECMAScript files are downloaded from server on each request or with cache policy, then scripts can be updated, but the number of requests increases and interaction speed decreases

Engineering Contradiction:
Improveinteraction speedVSAvoidtime for multiple requests
Core Design Contradiction:
SpeedVSLoss of time

Solution Approach 1:

The patent stores ECMAScript files in the browser's local storage database before they are needed, so that when the website is accessed, the scripts are already available locally without requiring server requests. This preliminary storage action eliminates the need for multiple requests and significantly improves interaction speed.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent creates local copies of ECMAScript files in the browser's local storage database. Instead of repeatedly downloading from the server, the browser stores copies of these files locally and retrieves them from local storage, reducing the number of server requests and improving loading speed.

Inventive Principle:
Principle #26Copying

2Productivity

If ECMAScript files are cached locally, then request frequency decreases, but updating scripts becomes difficult

Engineering Contradiction:
Improverequest efficiencyVSAvoidscript updateability
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent implements a version number checking mechanism where the browser compares the version number of locally stored ECMAScript files with the version number provided by the server. This feedback loop allows the system to automatically detect when updates are available and trigger appropriate actions, balancing local caching with update capability.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent makes the local storage system dynamic by implementing version comparison logic. The system can adapt its behavior based on version mismatches: if the local version is outdated, it retrieves the updated script from the server; if versions match, it uses the local copy. This dynamic approach maintains both caching efficiency and update capability.

Inventive Principle:
Principle #15Dynamics

3Speed

If extensive cache policy is set to prevent server requests, then interaction speed improves, but script content updating is prevented

Engineering Contradiction:
Improveloading speedVSAvoidscript update reliability
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent uses version number comparison as a feedback mechanism to determine whether to use cached scripts or fetch updated ones from the server. This ensures that scripts are reliably updated when changes are made on the server while maintaining fast local loading when no updates are available.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent performs preliminary version checking before executing scripts. By comparing version numbers in advance, the system can determine whether cached scripts are current or need updating, ensuring reliability without sacrificing loading speed.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS10970354B2Method for processing code and increasing website and client interaction speed
Publication Date: 2021.04.06 SONGTRADR INC
  • US10970354B2 patent drawing
  • US10970354B2 patent drawing

AI summary

A method for increasing interaction speed between a website and a client device includes storing on an HTML5 local storage database on the client an ECMAScript file and a parameter from a web server of the website, and subsequently comparing a web server version number of the ECMAScript from the web server with the local version number of the parameter stored on the HTML5 local storage database. The parameter specifies a local version number of the ECMAScript file. The method can also include updating the ECMAScript stored on the HTML5 local storage database with the ECMAScript file from the web server when the web server version number is greater than the local version number. The method can also include loading the website on the client by retrieving the ECMAScript file from the HTML5 local storage database. Retrieving the ECMAScript file from the HTML5 local storage database can occur when the web server version number is the same as the local version number. The method can also include loading the website on the client by retrieving the ECMAScript file from the HTML5 local storage database.