Why is jquery loaded second, even if it is defined first in the mvc package configuration file?

As the question says, I included the jquery file primarily in the configuration of my package in the asp.net mvc application, as shown below:

bundles.Add(new ScriptBundle("~/bundles/ozhay").Include(
                        "~/Scripts/jquery.min.js",
                        "~/Scripts/jquery-migrate.min.js",
                        "~/Scripts/jquery.slimscroll.min.js",
                        "~/Scripts/jquery.fancybox.pack.js",
                        "~/Scripts/jquery.owl.carousel.min.js",
                        "~/Scripts/jquery.zoom.min.js",
                        "~/Scripts/bootstrap.min.js",
                        "~/Scripts/back-to-top.js",
                        "~/Scripts/bootstrap.touchspin.js",
                        "~/Scripts/layout.js",
                        "~/Scripts/bs-carousel.js"
                ));

But when I view the source code in firefox or IE, I see jquery in the second loaded position, the figure below shows the detail: JQuery loaded in second position

This is how I displayed the script package on my layout page after RenderBody():

@Scripts.Render("~/bundles/ozhay")

Note. I have two different versions of jquery in my application, V1.10.2 and V1.11.2. Version 1.10.2 is installed by the MVC template, and the second version is 1.11.2. I added it to the scripts because I use it for a pre-created template (design).

Thank!

+4
1

. Bundle , . , script , HTML, CSS, .

. script, :

      "~/Scripts/jquery.min1.js",
      "~/Scripts/jquery-migrate.min2.js",
      "~/Scripts/jquery.slimscroll.min3.js"

( , )

      "~/Scripts/1.js",
      "~/Scripts/2.js",
      "~/Scripts/3.js"

Javascript, , , JS.

0

All Articles