-2

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?

uksz
  • 18,239
  • 30
  • 94
  • 161

1 Answers1

0

You need define the file in your HTML: <script src="yourfilename.js"></script> Be sure to put .js at the end otherwise it wont work.

Nicholas Smith
  • 674
  • 1
  • 13
  • 27