JCrop is undefined - Conflicting Jquery Script

JCrop is undefined - Conflicting Jquery Script

Hi guys,
I am struggling with conflicting Jquery scripts, using asp.net mvc core 2. Whenever I add the layout page which has its own jquery library for bootstrap it gives the error (JCrop is undefined) If I block jquery in the inspect tool in chrome, it works.

What can I do ? here is my code

The only difference between the two pages, is that the main page (line 5) has the reference default layout in .net MVC which is     Layout = "~/Views/Shared/_Layout.cshtml";

Also I am attaching the chrome network order below


  1. @{
  2.     ViewData["Title"] = "Crop2";
  3.     Layout = null;
  4. }

  5. <h2>Crop1</h2>

  6. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
  7. <script type="text/javascript" src="https://cdn.rawgit.com/tapmodo/Jcrop/master/js/jquery.Jcrop.min.js"></script>


  8. <img src="~/images/1.svg" id="Image1" />
  9. <script>


  10.         $(document).ready (function () {

  11.                     $('#Image1').Jcrop({

  12.                         onSelect: function (c) {
  13.                             console.log(c);
  14.                          //onLoad : SetCoordinates,
  15.                         //onSelect: SetCoordinates
  16.                         }
  17.                     });


  18.             });

  19. </script>