javascript - zip.js loads inflate.js several times -


i use zip.js unzip file in browser. loads inflate.js many times client. each load successfull (200/304) why happen many times? how can load inflate.js once on web page load? usage code:

zip.workerscriptspath = 'lib/'; var br = new zip.data64urireader(blob); zip.createreader(br, function (reader) {   /// ... } 

firebug info

zip.usewebworkers = false;  

and including

<script type="application/javascript" src="lib/inflate.js"></script> 

statically fixes problem