jQuery conflict

Posted by Community Admin on 03-Aug-2018 12:26

jQuery conflict

All Replies

Posted by Community Admin on 06-Apr-2012 00:00

Hello,

We use a lot of our own made widgets which require jQuery on our website. Because most pages don't include a Sitefinity widget we include it ourselves in the masterpage.

The problem is that when we do include a Sitefinity widget together with our own widgets jQuery gets loaded in twice and breaks our widgets (<function> is not a function for example.)

Is there a way in .NET to exclude the sitefinity version of the jQuery?
Another possibility is to use the scriptmanager so instead of linking to our own file we can use the integrated Sitefinity jQuery, problem is that this also loads a whole lot of other (unused) scripts which makes loading times too long. Is there a way to tell the scriptmanager which scripts to load and more importantly, which not to load?

Best regards,
Rick

Posted by Community Admin on 06-Apr-2012 00:00

How are you loading jquery in your widgets?

You SHOULD be using the ResourceLinks control as it can detect if a script is already loaded and not load it twice...it also can load jQuery for you...

www.sitefinity.com/.../resourcelinks-control

Posted by Community Admin on 30-Dec-2013 00:00
This thread is closed