Remove jquery

ekt
New Contributor

Hi guys,

I need to find a way how to remove jquery from my project.

Is it possible? I've only found the opportunity to change the version in settings, but not to disable it 

Screenshot from settings http://prntscr.com/nfbxoy

Reply
0 Upvotes
2 Replies
Regular Advisor | Gold Partner | HubSpot Certified Trainer

I'm not entirely sure you can safely disable it without losing functionality native to how the CMS operates with jquery. However, I'm going to throw out a guess, in hopes that it might help.

 

<script>
// remove all jquery event listeners
$("*").off();
// set jquery to undefined
$ = jQuery = undefined;
</script>

tim@belch.io

Reply
0 Upvotes
Highlighted
Advisor

@ekt there is not an official way to remove it because many built-in HubSpot modules require it. However, you can move it to the footer to increase page performance.

--
Stefen Phelps
Web Developer / Co-founder
Kelp Creative Agency
Twitter — @stefen