I implemented the StackExchange MiniProfiler on an ASP.NET WebForms page that already references v1.7.1 jQuery. The jQuery file is hosted locally, so my master file looks like this:
<script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script> <%= MiniProfiler.RenderIncludes() %>
However, when I look at the source of the generated output, I get something similar to this
<script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script> <script type="text/javascript"> ... load('/app/mini-profiler-resources/jquery.1.7.1.js?v=tNlJPuyuHLy/d5LQjyDuRbWKa0weCpmO3xkO6MH4TtA=', initMp); </script>
Looking at the developerโs network tools tab, I see that he inserts two queries, one for Scripts/jquery-1.7.1.min.js and another for /app/mini-profiler-resources/jquery.1.7.1.js
Isn't this a very serious redundancy problem? How to stop MiniProfiler from querying, loading and parsing another copy of jQuery library?
growse
source share