js files loading separately in web application

224 views Asked by At

I have noticed in my web application that once the call to servlet returns and the jsp is loading, I can see the jquery js files I use for the datatables loading separately. Attached is the screen shot. Is there some configuration I need to do in web.xml or something?

Check this screen shot for the firebug snapshot

This does not happen on another jsp where I am using datatables as well. Also I have checked the code in both my jsps and the reference for the files is same as below. However when I invoke the first jsp I dont see it separately loading the files but when i invoke the second jsp, i can see it loading the files in firebug and hence it takes a few seconds longer for the page to load. What am i doing wrong?

<link rel="stylesheet" type='text/css'  href="css/styles.css">
<link rel="stylesheet" type='text/css'  href="css/jquery-ui.css">
<link rel="stylesheet" type="text/css"  href="css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="script/jquery-1.10.2.min.js"></script>
<script type="text/javascript" charset="utf8" src="script/jquery-ui.js"></script>
<script type="text/javascript" charset="utf8" src="script/jquery.dataTables.js"></script>

0

There are 0 answers