The invention relates to a method and device for increasing the loading speed of a single-page application,
electronic equipment and a readable storage medium. The method comprises the steps that a preload component cache
queue is created to store preload component instances; initializing a preloaded component instance, creating a webview control, and loading a front-end
single page application URL (
Uniform Resource Locator); loading a common static resource through the control, loading the common static resource into a memory, preloading a front-end empty routing page, and adding an initialized preloading component into a cache
queue; obtaining an initialized preload component from the cache
queue, loading a front-end function page routing static resource, and calculating and executing a function page static resource; and obtaining the preload component from the cache queue, judging whether the queue has residual preload component instances or not, if not, starting a background thread, creating the preload component, and inserting the preload component into the cache queue. According to the method, script execution calculation time and page second-out are saved, time-consuming operation of component
recreation can be avoided, page loading speed is increased, meanwhile, the method is suitable for various
hybrid application architectures APPs, and universality is high.