Support Forums - Classified Ads Script Osclass

Osclass plugin support => Free Osclass Plugins => CSS & JS Minify Plugin => Topic started by: slicer on September 21, 2018, 06:39:26 PM

Title: almost completely working
Post by: slicer 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.  :'(  :-[
Title: Re: almost completely working
Post by: MB Themes on September 21, 2018, 07:21:05 PM
Remove it from head and include manually to header.php
Title: Re: almost completely working
Post by: slicer 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  :'(

(https://i.imgur.com/a7nfeEQ.png)


(https://i.imgur.com/MudahhG.png)
Title: Re: almost completely working
Post by: MB Themes on September 21, 2018, 08:22:03 PM
global.js must be added after jquery is loaded.
Title: Re: almost completely working
Post by: slicer 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
Title: Re: almost completely working
Post by: Locan on September 22, 2018, 03:09:05 PM
Quote
Thanks a lot for your help, I think it's working  ;D :D

How Dear?