Browse Source

Conditionally Loading jQuery in profiler template

Juukie14 11 years ago
parent
commit
55fe0189ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/profiling/template.blade.php

+ 1 - 1
laravel/profiling/template.blade.php

@@ -119,6 +119,6 @@
 	</ul>
 	</ul>
 </div>
 </div>
 
 
-<script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
+<script>window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"><\/script>')</script>
 <script>{{ file_get_contents(path('sys').'profiling/profiler.js') }}</script>
 <script>{{ file_get_contents(path('sys').'profiling/profiler.js') }}</script>
 <!-- /ANBU - LARAVEL PROFILER -->
 <!-- /ANBU - LARAVEL PROFILER -->