Just like we include a javascript file in html
<script language="JavaScript1.2" src="CommonFunctions.js" type="text/javascript">
In this case 'CommonFunctions.js' is placed in current directory. Can we include a javascript file which is inside a zipped file?
Some people want this functionality, but currently it isn't supported.
I don't believe it's very useful either - if you zip all JS and CSS, how can you cache parts of them on the local machine? There is already GZIP too, and minification.
Images also won't make much or possibly overhead by being zipped if they are in a compressed format like PNG.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With