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
-
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.
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. :'( :-[
-
Remove it from head and include manually to header.php
-
Remove it from head and include manually to header.php
Alright, when I do this:
Commenting in head.php
//osc_register_script('global', osc_current_web_theme_js_url('global.js?v=' . date('YmdHis')));
//osc_enqueue_script('global');
Bellow this line:
<link href="https://fonts.googleapis.com/css?family=Nunito:300,400,400i,600,700&subset=latin-ext,vietnamese" rel="stylesheet">
I add this:
<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)
-
global.js must be added after jquery is loaded.
-
global.js must be added after jquery is loaded.
Thanks a lot for your help, I think it's working ;D :D
-
Thanks a lot for your help, I think it's working ;D :D
How Dear?