Loading jquey over https

GK User
Sun Oct 19, 2014 2:26 pm
Hello,
I have a site with https enabled. But there is jquery-latest 1.11 loaded over http, then I have a blocked error on inspector's Chrome or FIrefox

I can see at source this
Code: Select all
  <script src="https://www.lemaxcooperativa.com/templates/gk_events/js/scrollreveal.js" type="text/javascript"></script>
  <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>


Then If I go to head.php on files template /layout/blocks/head.php I can see:

Code: Select all
$this->API->addJS($this->API->URLtemplate() . '/js/scrollreveal.js');
$this->API->addJSFragment( "\n".'$GK_TMPL_URL = "' . $this->API->URLtemplate() . '";'."\n" );
$this->API->addJSFragment( "\n".'$GK_URL = "' . $this->API->URLbase() . '";'."\n" );

if($this->API->get("css_prefixer", '0')) {
   $this->API->addJS($this->API->URLtemplate() . '/js/prefixfree.js');
}

if($this->API->get('css_compression', '0') == 1 || $this->API->get('css_cache', '0') == 1) {
   $this->cache->registerCache();
}

if($this->API->get('js_compression', '0') == 1 ) {
   $this->cache->registerJSCompression();
}

?>


But i don's know where to change http://code.jquery.com/jquery-latest.min.js to https://code.jquery.com/jquery-latest.min.js. If I change your template for default one doesn't load this library, so I suspect is something on your template's configuration thay I have to change.

Thanks,
DN.
User avatar
Expert Boarder

teitbite
Mon Oct 20, 2014 10:13 am
Hi

This is loaded in framework core functions, so I would not advice to hack this part. Instead try installing Easy jQuery plugin where You can select jQuery version and http/https variants.
User avatar
Moderator

GK User
Mon Oct 20, 2014 10:21 am
yes, I'm using it, and it's configured and enabled, but cannot change this one.
Are you talking about your framework?
User avatar
Expert Boarder

teitbite
Tue Oct 21, 2014 8:37 pm
Hi

Yes I mean our framework, but if You are using Easy jQuery already than our jQuery is already replaced. Try configure it to use a local library maybe.
User avatar
Moderator


cron