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

1410
3
08-24-2020 01:40 PM
Drew
by
Occasional Contributor III

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.

Drew
by
Occasional Contributor III

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

Drew

0 Kudos
Stacy-Rendall
New Contributor III
0 Kudos