This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

slicer

  • ***
  • 204 posts
almost completely working
« on: September 21, 2018, 06:39:26 PM »
Hey guys, I'm trying to figure out what could be wrong, and I found the only script that I believe isn't working on Stela Theme once you enable minify.

Code: [Select]
global.js
How can I integrate it inline or exclude it from register_script.

with Minify disabled: I tried to add gloabal.js manually to head, inserting inline and always get errors  :'(
Is there a way to exclude it from enqueueing ?



It is the only thing that stops me from improving my site.  :'(  :-[

*

MB Themes

Re: almost completely working
« Reply #1 on: September 21, 2018, 07:21:05 PM »
Remove it from head and include manually to header.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

slicer

  • ***
  • 204 posts
Re: almost completely working
« Reply #2 on: September 21, 2018, 07:42:08 PM »
Remove it from head and include manually to header.php

Alright, when I do this:

Commenting in head.php
Code: [Select]
//osc_register_script('global', osc_current_web_theme_js_url('global.js?v=' . date('YmdHis')));

//osc_enqueue_script('global');

Bellow this line:
Code: [Select]
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400,400i,600,700&amp;subset=latin-ext,vietnamese" rel="stylesheet">
I add this:

Code: [Select]
<script type="text/javascript" src="content/themes/stela/js/global.js"></script>

this is the error I get in browser and everything related to global stop working  :'(






Marked as best answer by slicer on September 21, 2018, 10:13:23 PM
*

MB Themes

Re: almost completely working
« Reply #3 on: September 21, 2018, 08:22:03 PM »
global.js must be added after jquery is loaded.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

slicer

  • ***
  • 204 posts
Re: almost completely working
« Reply #4 on: September 21, 2018, 10:03:40 PM »
global.js must be added after jquery is loaded.

Thanks a lot for your help, I think it's working  ;D :D

*

Locan

  • ***
  • 166 posts
Re: almost completely working
« Reply #5 on: September 22, 2018, 03:09:05 PM »
Quote
Thanks a lot for your help, I think it's working  ;D :D

How Dear?