Web Application Package Resource Extraction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current methods for generating web application packages are not space-efficient, as they include redundant static resources, leading to increased storage requirements.
Innovation Solution
A method that determines the resources required by a web application, stores them, and generates a package with resource addresses instead of the resources themselves, allowing for resource retrieval upon loading, thereby reducing the package size by excluding static resources.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If static resources are included in the web application package, then the package is self-contained and can be loaded independently, but the package size increases and storage space is wasted
Solution Approach 1:
The patent extracts static resources from the web application package and stores them in a separate storage location. The package now contains only resource addresses (URLs) pointing to these external resources, significantly reducing package size while maintaining the ability to retrieve resources when needed.
Solution Approach 2:
Instead of embedding actual resource files in the package, the patent uses resource addresses (URLs) as references. These addresses act as copies or pointers to the actual resources stored externally, allowing the package to reference resources without containing them physically.
2Speed
If all resources are embedded in the package, then resource access is fast and offline, but storage requirements increase and space efficiency decreases
Solution Approach 1:
The patent extracts resources from the package and stores them externally, keeping only lightweight resource addresses within the package. This dramatically reduces the quantity of data stored in the package while maintaining efficient resource access through URL-based retrieval mechanisms.
Solution Approach 2:
The resource address (URL) serves multiple functions: it identifies the resource, provides the location for retrieval, and enables access to resources that can be shared across multiple applications. This single data structure replaces the need to store actual resource copies.
Data Source
AI summary
Implementations of the present specification disclose a method, an apparatus, and a device for processing a web application package. In the method, processing the web application package includes: determining a resource required by a web application; storing the resource; determining a resource address corresponding to a storage location of the resource; and generating a web application package that comprises the resource address, wherein the web application package excludes the resource corresponding to the resource address.


