Why is dojo-lite.js requested so many times?

554
3
08-24-2020 01:40 PM
AndrewTimmins
Regular Contributor

Hello,

I have just been looking at the 4x JSAPI and noticed that the dojo-lite.js file gets requested 7 times on a simple mapping application.  Is there any reason why the code is doing this, or any way to prevent it to ensure my app is optimized correctly?

SAMPLE APP:

Intro to MapView - Create a 2D map | Sample | ArcGIS API for JavaScript 4.16 

(You can preview this in the network tab of the chrome debugging tools.)

see attached sample

Drew

0 Kudos
3 Replies
ReneRubalcava
Frequent Contributor

That file is used by the workers, so each worker thread is loading it. Number of worker threads will vary.

AndrewTimmins
Regular Contributor

Thanks Rene, 
It seemed odd, but makes sense now.

Drew

0 Kudos
StacyRendall2
New Contributor III
0 Kudos