CMS Development

ekt
Participant

Remove jquery

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

0 Upvotes
2 Replies 2
stefen
Key Advisor | Partner
Key Advisor | Partner

Remove jquery

@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, Community Champion, Kelp Web Developer
tjoyce
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Remove jquery

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

0 Upvotes