Slides conflicting with each other

Asked

Viewed 60 times

5

I have the following problem I have a slide right at the beginning of my tag page <header> but one of their codes is imported that would be the url put now in my <section> I have one more tag that is from another slide would be that here this url is conlitando with mine <header> it will be possible to fix this axiste another way to be done remembering that I put both urls in the browser and copied the code to a file .js and saved within my project but still continue to conflict

These two slides are from a site follows the url of the two slides I have to use:

header slide Section slide

2 answers

5


The links you pointed out are:

http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js

It seems to me that you have different versions of the same library (jQuery) to load on the page. This causes errors as the variables overlap and parts of the code restarts.

The best in these cases of plugins that come with local versions of libraries is to keep the latest (1.8.3 in your case). And sometimes it may be time to get an even more up-to-date version, Tavez 1.11.3 in your case.

1

Probably from what I noticed you are making use of plugins for some specific behavior (slide / gallery...) on your web site and the same has as dependency on the Framework jQuery. Tips:

1.If you are going to load them from a (host/Sever/Cdn), when you are on development phase allocate links before closing the tag <body>, for performance reasons so there will be no DOM loading lock.

2. Use only a jQuery version and the most compatible version, the one that contemplates Features of the IE for example, so you don’t need to predict fallbacks for stupid things.

3. Check the documentation of the plugins you are using as they sometimes only run with specific versions of the Framework

Eh be happy in the way Mama js!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.