So I have a website, that has a configurator, where you can configure your own product. The configurator website needs additional .js
files, like dist.js
and libs.js
. Both of those files are around 2mb's each.
My question is: how can I start downloading those files on the landing page, so that when user goes to /configuration.html
, he already started downloading those files?
你需要在你的 HTML 中定义文件: <script src="yourfilename.js"></script>
一定要把 .js 放在最后,否则它不会工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.