Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

CSS Compression - exclusion options?

Featured Lock Resolved Issue
Hello,

I've been attempting to increase the performance of my site by using some of the templates built-in options, as well as using JCH to minify code and further optimize site performance.

I finally have a combination of settings working that *appears to be functioning well on all pages, except my contact page. I'm getting the following javascript errors;

jscss.php?f=2bacb7331a3accdc47c0acff6eca4086&type=js&gz=gz&i=0:6 Error in file:/cache/com_templates/templates/shaper_helixultimate/5f6102d914cc786a4eeefbe86c239df2.js; Error:jQuery(...) is not a function
(anonymous) @ jscss.php?f=2bacb7331a3accdc47c0acff6eca4086&type=js&gz=gz&i=0:6
main.js:85 Uncaught TypeError: $(...).tooltip is not a function
at HTMLDocument.<anonymous> (main.js:85)
at c (jquery.min.js?9612ff14a562d44567b7b4d2ee248ca0:2)
at Object.fireWith [as resolveWith] (jquery.min.js?9612ff14a562d44567b7b4d2ee248ca0:2)
at Function.ready (jquery.min.js?9612ff14a562d44567b7b4d2ee248ca0:2)
at HTMLDocument.F (jquery.min.js?9612ff14a562d44567b7b4d2ee248ca0:2)

This only occurs if I invoke CSS compression in the template. All other pages are error-free.

I'm even excluding the following JS files;
jquery.min.js, main.js, analytics.js, 5ecca6bb29ae400d1c765d86fe42ba9f_0.js

Is there any ability to have this compression function exclude this URL?
https://www.titanwindowfilms.com/contact-us.html

Thanks in advance!

8 Answers

Richard Baker

More than a month ago #Permalink
Sorry for the late response here. My eldest brother past away at littleton hospital in Denver on the 14th.

What I am thinking is you have multiple compression going on and they are fighting each other also make sure you don't have multi jquery

[email protected]

More than a month ago #Permalink
...& in all honesty, I don't really know what I'm doing when it comes to these settings.
I have just been trying various settings until I seem to get the best response times from Google's PageSpeed.

I appreciate if you'll make any replies easy to follow with examples, etc.

Appreciate the ongoing support from this forum!!! :)

Richard Baker

More than a month ago #Permalink
Put this in your .htaccess

<IfModule pagespeed_module>
ModPagespeed on
#ModPagespeedDisallow "*/administrator/*"
</IfModule>

Most of joomla's back end, for some reason, does not like pagespeed.

you can also adjust and add this: #ModPagespeedDisallow "*/administrator/*"
to other spots, i.e components

[email protected]

More than a month ago #Permalink
Put this in your .htaccess

<IfModule pagespeed_module>
ModPagespeed on
#ModPagespeedDisallow "*/administrator/*"
</IfModule>

Most of joomla's back end, for some reason, does not like pagespeed.

you can also adjust and add this: #ModPagespeedDisallow "*/administrator/*"
to other spots, i.e components


Thanks for the tip, Richard!
I did see a *slight improvement using this addition.

In retrospect, I should have titled this post "Javascript Compression" as this relates to the compressing of Javascript that is causing the errors on my contact page. This feature seems to work on all other pages except for this form based content.

Any ideas on how to exclude this from operating on this specific page?

Richard Baker

More than a month ago #Permalink
which are you using cpanel or plesk and Apache or Nginx?

Bye the way I looked at you website and it looks great.
https://www.titanwindowfilms.com/contact-us.html Looks to be working for me. I will try and send you a test msg.

[email protected]

More than a month ago #Permalink
which are you using cpanel or plesk and Apache or Nginx?

Bye the way I looked at you website and it looks great.
https://www.titanwindowfilms.com/contact-us.html Looks to be working for me. I will try and send you a test msg.


Thanks kindly, Richard!
& Msg received. Appreciate you looking closer at this.

The site is hosted with GreenGeeks (cPanel)
I've just enabled Cloudflare on the site as well.

I've actually disabled the Javascript compression via the template to correct this error, as it was completely disabling the form's ability to send mail.

I re-enabled this feature briefly in order to grab a screenshot of the properly formatted error, and how it appears in Chrome's console.

Appreciate your continued assistance!

Attachments (1)

  • jscript-error-contact-page.jpg
    jscript-error-contact-page.jpg 210.2 KB

[email protected]

More than a month ago #Permalink
Sorry for the late response here. My eldest brother past away at littleton hospital in Denver on the 14th.

What I am thinking is you have multiple compression going on and they are fighting each other also make sure you don't have multi jquery


My condolences.

Thanks for your efforts to help my situation.

Regards,
Danny


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 104
Toufiq

Toufiq

Total Accepted Answers: 60
Sifat

Sifat

Total Accepted Answers: 44
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 17
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 16

118

Templates

305865

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us