Quick App Page Rendering Using Server-Preprocessed Script Results
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The process from tapping a quick application to displaying the corresponding page is lengthy due to the large size of application packages, despite the subpackaging solution provided by the quick application alliance.
Innovation Solution
The method involves pre-processing script files on a server to generate execution results, which are then sent to the terminal device for immediate page display, reducing the need for local processing and enabling faster page loading.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If the application package is large in size and includes multiple subpackages, then the application can provide more complete functionality, but the page display speed becomes slower due to the time required to download and process the package
Solution Approach 1:
The patent applies preliminary action by pre-compiling script files into executable bytecode on the server before the user actually needs them. When a user accesses a page, the corresponding script has already been compiled and is ready for immediate execution, eliminating the compilation delay from the user's perspective. This resolves the contradiction by preparing functionality in advance without requiring the user to wait during the actual page display.
Solution Approach 2:
The patent segments the application package into multiple subpackages, each corresponding to specific functional modules or pages. This allows the system to download and process only the necessary subpackages rather than the entire application package, thereby improving page display speed while maintaining complete functionality through selective loading of required segments.
2Adaptability or versatility
If the terminal device processes script files locally, then the application can be more flexible and adaptive to different devices, but the processing time increases and slows down page display
Solution Approach 1:
The patent moves the script compilation action to the server and performs it in advance, before the user needs the functionality. The compiled bytecode is then cached and readily available for deployment to terminal devices. This eliminates the time-consuming compilation process from the user's waiting experience while maintaining device adaptability through the flexible caching and deployment mechanisms.
Solution Approach 2:
The patent introduces a server as an intermediary between the script source and the terminal device. The server performs the compilation of script files into bytecode, acting as a mediator that handles the time-consuming processing task. This allows terminal devices to receive pre-compiled, device-adaptable bytecode without experiencing the processing delay, effectively separating the adaptation process from the user's waiting time.
3Adaptability or versatility
If the script file is compiled and executed on the terminal device, then the application can adapt to terminal device characteristics, but the overall processing speed decreases
Solution Approach 1:
The patent applies preliminary action by pre-compiling script files into executable bytecode on the server before deployment to terminal devices. This advance compilation ensures that when the bytecode is received and executed on the terminal device, it can be immediately run without additional compilation steps, thereby maintaining high page display efficiency while still achieving terminal device adaptation through the flexible bytecode execution model.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
This application provides a quick application processing method, an electronic device, and a quick application system, and relates to the field of communication technologies. The method includes: In response to a page opening operation on a target quick application, a terminal device sends a preprocessed-data request to a server. The server returns preprocessed data corresponding to the preprocessed-data request to the terminal device after receiving the preprocessed-data request. The terminal device generates and displays a target page based on the preprocessed data after receiving the preprocessed data. The preprocessed data includes an execution result of a target script file. The target script file is a script file corresponding to the target page. Technical solutions provided in this application improve a page display speed of a quick application, and improve user experience.