Why multiple loads of "dependency"?

For developers using the Construct 2 Javascript SDK

Post » Sun May 18, 2014 7:44 am

I need the same dependency across multiple plugins. I checked the source code inside the browser and it is loading the dependencies for every plugin into into separate <script> tags even when the dependency name is the same:
Code: Select all
<script src="three.js"></script>
<script src="three.js"></script>


But when I export the project it only creates the dependency file once. So why have multiple <script> tags?

I hope this is because Construct2 uses webcache and the extra <script> tags don't do anything.
B
40
S
11
G
4
Posts: 665
Reputation: 8,453

Post » Mon May 19, 2014 11:51 am

I think it's a bug, it doesn't attempt to de-duplicate dependencies. Report it to the bugs forum.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Mon May 19, 2014 11:52 am

Alright.
B
40
S
11
G
4
Posts: 665
Reputation: 8,453


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 2 guests