<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Jquery 3.6.0 conflicts with Liferay 7 from theme</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120967975" />
  <subtitle>Jquery 3.6.0 conflicts with Liferay 7 from theme</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120967975</id>
  <updated>2026-04-04T04:50:45Z</updated>
  <dc:date>2026-04-04T04:50:45Z</dc:date>
  <entry>
    <title>Jquery 3.6.0 conflicts with Liferay 7 from theme</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120967974" />
    <author>
      <name>Kevin Neibarger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120967974</id>
    <updated>2021-08-17T15:37:58Z</updated>
    <published>2021-07-20T13:13:17Z</published>
    <summary type="html">&lt;p&gt;Hello, I followed the blog below to include the newest version of
  jQuery (3.6.0). I just added a minified js file to my theme and
  included it in my portal_normal.ftl&lt;/p&gt;
&lt;p&gt;https://liferay.dev/blogs/-/blogs/jquery-in-liferay-7-0&lt;/p&gt;
&lt;p&gt;I did everything from the blog but when I try to load my intro page,
  I see multiple javascript errors in the console with Liferay specific
  jquery files&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/14/0/Screen+Shot+2021-07-20+at+9.02.38+AM.png/67476230-7f89-01ae-1e57-de9f2f4e3dc9?t=1626786549355&amp;amp;imagePreview=1" /&gt;
  &lt;br /&gt;  &lt;/p&gt;
&lt;p&gt;My portal_normal.ftl looks like this&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;&amp;lt;head&amp;gt;&lt;br /&gt;     &amp;lt;title&amp;gt;${html_title}&amp;lt;/title&amp;gt;&lt;/p&gt;
  &lt;p&gt;    &amp;lt;meta content=&amp;quot;initial-scale=1.0,
    width=device-width&amp;quot; name=&amp;quot;viewport&amp;quot; /&amp;gt;&lt;/p&gt;
  &lt;p&gt;    &amp;lt;@liferay_util[&amp;quot;include&amp;quot;] page=top_head_include
    /&amp;gt;&lt;br /&gt;     &lt;br /&gt;     &amp;lt;script
    src=&amp;quot;${javascript_folder}/jquery-3.6.0.min.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
         &lt;br /&gt;     &amp;lt;script
    type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;         // handle the
    noconflict designation, use namespace dnjq for DN's jQ.&lt;br /&gt;       
     dnjq = jQuery.noConflict(true);&lt;br /&gt;     &amp;lt;/script&amp;gt;&lt;br /&gt;   
     &lt;br /&gt; &amp;lt;/head&amp;gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The Javascript errors don't go to a js file specifically and when I
  click on the link to see the source it goes to the Liferay generated
  HTML. What version of jQuery is Liferay using? When is it loaded? I am
  using Liferay 7.3 GA7. It was working fine with jQuery 1.11 but we
  want to upgrade due to security issues with that version.. It's
  blowing up because Liferay generated stuff is looking for $ and it's
  not loaded for some reason.. &lt;/p&gt;</summary>
    <dc:creator>Kevin Neibarger</dc:creator>
    <dc:date>2021-07-20T13:13:17Z</dc:date>
  </entry>
</feed>
