lindseyloris
New Member
Is there a way to stop reloading jQuery with each HTML page?For example, I've got two HTML pages both containing the following:\[code\] <body> <script src="http://stackoverflow.com/questions/12798844/jquery"></script>\[/code\]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:\[code\]# Result Protocol Host URL Body Caching Content-Type1 200 HTTP localhost:4567 / 9,101 text/html;charset=utf-82 200 HTTP localhost:4567 /jquery 90,518 text/html;charset=utf-83 200 HTTP localhost:4567 /namadd 8,706 text/html;charset=utf-84 200 HTTP localhost:4567 /jquery 90,518 text/html;charset=utf-8\[/code\]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 \[code\]<script src="http://stackoverflow.com/questions/12798844/jquery"></script>\[/code\].
- Item 3 shows another HTML page being loaded.
- Item 4 shows that HTML loading jQuery, using \[code\]<script src="http://stackoverflow.com/questions/12798844/jquery"></script>\[/code\]