By Mark H on Friday, 16 May 2014
Posted in General Issues
Replies 5
Likes 0
Views 1.4K
Votes 0
I am posting this together as I have a few issues that may off may not be related.

1. When viewing using an iOS device, the PM functions do not work

2. And this is the tell tale for, my main menu is support to collapse into a mobile menu. It does this on all website pages, except for EasyDiscuss forum pages.

Here is what Safari Error Console reports on forum pages:

[Error] ReferenceError: Can't find variable: jQuery
global code (template-ck.js.pagespeed.ce.OnO4qlLJOF.js, line 1)
[Error] ReferenceError: Can't find variable: jQuery
global code (forum, line 1276)


As a test, I temporarily enabled "Load jQuery from Google CDN" in my template's settings. This fixed both issues.

How can I enable jQuery for forum pages?
Hello Mark,

This does seem like you are loading a WYSIYG editor in the forum? It seems that it's trying to use jQuery and it doesn't exist. What if you switch to the normal bbcode?
·
Friday, 16 May 2014 01:26
·
0 Likes
·
0 Votes
·
0 Comments
·
No, the normal bbcode editor.
·
Friday, 16 May 2014 01:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

Just checked your site and it looks like that particular template-ck.js is actually from your Joomla template. I think what actually happened is that when your JS compression kicks in, the jQuery namespace is no longer on the site. In fact, even when viewing the page with a normal browser, it's throwing jQuery errors as well


<script>
(function($) {
$(document).ready(function() {
$(".mobile-menu-toggle.mainmenu").mMenu(480, 'Menu');
});
})(jQuery);
</script>
·
Friday, 16 May 2014 02:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark, this should help me solve it.
·
Friday, 16 May 2014 16:24
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Mark
·
Friday, 16 May 2014 19:00
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post