Conflict between jquery and min-jquery [closed]

1

I'm having problems, because my code is conflicting with minjquery, I do not know what happens, when I put all my other codes I have do not work .... Please help me!

link

Thanks to everyone for the help, I decided to put the latest version of Jquery, which was the only one that worked with all the scripts together, and also took another one that was giving "conflict" to another plugin.     

asked by anonymous 24.10.2016 / 17:07

3 answers

3

From what I see on your page you are loading jQuery 1.3, 1.7 and 2.0 into different places, this creates conflicts and in fact you only need one of them. The conflict is probably because you have old code, by changing this code the problem must be solved. It is never good to load different versions of the same library.

Leave only the most modern jQuery (2.0) and place new questions on the site that you may have with any errors that you see on the console to have in the console.

What may be your problem is that different pages will fetch jQuery to different directories. In this case there is no overlay of libraries and although it is always good to use more modern versions, it is not urgent to change and can work with both.

What you have to find

<script src="assets/plugins/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script> // jQuery v1.7.2

24.10.2016 / 17:34
3

The .min version is not a feature-rich version, but rather a compressed one, meaning it is lighter to load, but has all the features of the unzipped version; in general, you use full versions in because they have some debugging capabilities and can be analyzed more easily in case of errors and problems, and uses the .min versions in the production environment, to lighten the load and not to display error messages.

You should not load multiple versions of jquery over each other, choose one to work with and just load it. In new projects I advise you to use the latest version and if any plugin / plugin (like your chat) does not work correctly, load the plugin migrate .

    
24.10.2016 / 20:38
1

I was taking a look at your source code and found what is probably the problem.

See the image below:

I think this should be the page you're doing. In this case, you should see that the jQuery plugin is after Jquery Form .

He has to come sooner. In fact, jQuery or jQuery Min has to come first, before any other plugin that uses jQuery. It would be good if you put these scripts before closing the </body> tag.

If it is not this page, show us how the source code is (not all) just the part of the scripts, which is in trouble.

    
25.10.2016 / 12:27