Is there a way to stop reloading jQuery with each HTML page? For example, I've got two HTML pages both containing the following:
<body>
<script src="jquery"></script>
In both cases, the same jQuery is sent to the browser. IE. Jquery-1.6.min.js (at present)
Fiddler appears to show that the file is sent in both cases. This is the Fiddler display:
# Result Protocol Host URL Body Caching Content-Type
1 200 HTTP localhost:4567 / 9,101 text/html;charset=utf-8
2 200 HTTP localhost:4567 /jquery 90,518 text/html;charset=utf-8
3 200 HTTP localhost:4567 /namadd 8,706 text/html;charset=utf-8
4 200 HTTP localhost:4567 /jquery 90,518 text/html;charset=utf-8
Currently I'm using the Ruby-Sinatra micro-framework to serve the data, but eventually it could be something else.
- Item 1 from above shows an HTML page being sent.
- Item 2 shows that HTML loading jQuery, using
<script src="jquery"></script>
. - Item 3 shows another HTML page being loaded.
- Item 4 shows that HTML loading jQuery, using
<script src="jquery"></script>