Skip to Content Skip to Menu

How do I disable load jquery in CB?

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 11 months ago #182936 by fribse2011
How do I disable load jquery in CB? was created by fribse2011
I would very much like to disable the loading of jquery in CB, and use a script integrator plugin, as I need it loaded earlier on the page than CB does it.
What should I modify to make it not load jquery in CB?

Best regards
Fribse

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 11 months ago #182947 by fribse2011
Replied by fribse2011 on topic Re: How do I disable load jquery in CB?
I've just moved the two jquery folders out of the js script under comprofiler for now, that makes it not load the scripts at least, but I'm unsure if that is going to 'break' anything?

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

  • dplathjc
  • dplathjc
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
12 years 10 months ago #185785 by dplathjc
Replied by dplathjc on topic Re: How do I disable load jquery in CB?
Hi, I installed the latest version I was just tryng to find a way aswell. You can

1. Open /administrator/components/com_comprofiler/plugin.foundation.php
2. Comment out line 2955 which looks like this:

$this->document->addHeadScriptUrl( '/components/com_comprofiler/js/jquery-' . _CB_JQUERY_VERSION . '/jquery-' . _CB_JQUERY_VERSION . '.js', true, null, 'jQuery.noConflict();' );

This should prevent CB from adding the JQuery core any in turn all JQuery plugins that CB uses will now use whatever JQuery core your using.

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
12 years 10 months ago #185875 by fribse2011
Replied by fribse2011 on topic Re: How do I disable load jquery in CB?
Excellent, thanks, I'll try into this as well!

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
12 years 10 months ago #185878 by nant
Replied by nant on topic Re: How do I disable load jquery in CB?

fribse2011 wrote: Excellent, thanks, I'll try into this as well!


Please note that this is considered a core edit and could cause issues down the road.

Please Log in or Create an account to join the conversation.

  • jfriesen
  • jfriesen
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 0
12 years 9 months ago #187742 by jfriesen
Replied by jfriesen on topic Re: How do I disable load jquery in CB?
nant since you warn against making a core edit and since it seems like a pretty reasonable thing to want to remove jQuery, can this be made a configurable thing?

James

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum