Method and device for lazy loading of js scripts
AssigneeWangsu Science & Technology Co., Ltd.
InventorJiaxing ZHENG
Life of this patent
Estimating the term…
Loading patent…
AssigneeWangsu Science & Technology Co., Ltd.
InventorJiaxing ZHENG
Estimating the term…
A method for lazy loading of JS scripts includes: determining whether a target browser supports a sequential execution function of an async attribute; if the target browser supports the sequential execution function of the async attribute, creating a script tag for each of the JS scripts based on a URL address for each of JS scripts to be lazily loaded, and setting async=false for each script tag; and sequentially inserting each script tag into an HTML document according to a script execution order of each of the JS scripts, so that the target browser downloads each of the JS scripts in parallel, and executes each of the JS scripts according to the script execution order.
A method for lazy loading of JS scripts, the method comprising:
A device for lazy loading of JS scripts, the device comprising:
A terminal, comprising:
(canceled)
Dependencies are inferred from the claim text.