By Inspire Theme LTD on Monday, 17 August 2015
Posted in General Issues
Replies 10
Likes 0
Views 1.4K
Votes 0
Hi guys,

There is a JS issue with EasyDiscuss when RokBooster or CDN for Joomla are enabled.

No, the issue is not caused by 3rd party extensions (RokBooster and CDN), it seems to be caused by the way your scripts are written - using the $ syntax instead of "jQuery".

I tried different options in RokBooster and CDN but I cannot overcome the JS issue. The only way to do it is to exclude EasyDiscuss from RokBooster and not to load the JS from CDN.

This is honestly not acceptable and I hope you understand that. It means that a website with EasyDiscuss cannot be optimized?

I also tried with JCH Optimize and I got the same issue.

Please find the video URL and my site details under the "Site Details" tab. Thanks.

Both RokBooster and CDN for Joomla are free so you can test on your own.
Hey Ivo,

I am sorry that delay of this reply,

I've put all the script file path in your Joomla CDN plugin `ignore files` field there, it should work fine now.

scripts/easydiscuss.js,media/foundry/3.1/scripts/jquery.js,media/foundry/3.1/scripts/lodash.js,media/foundry/3.1/scripts/bootstrap.js,media/foundry/3.1/scripts/responsive.js,media/foundry/3.1/scripts/utils.js,media/foundry/3.1/scripts/uri.js,media/foundry/3.1/scripts/mvc.js,media/foundry/3.1/scripts/joomla.js,media/foundry/3.1/scripts/module.js,media/foundry/3.1/scripts/script.js,media/foundry/3.1/scripts/stylesheet.js,media/foundry/3.1/scripts/language.js,media/foundry/3.1/scripts/template.js,media/foundry/3.1/scripts/require.js,media/foundry/3.1/scripts/iframe-transport.js,media/foundry/3.1/scripts/server.js,media/foundry/3.1/scripts/component.js,config/92f0933eef8e61a6e28956ed4e106964.js,media/foundry/3.1/config/39788bbec349e853b5ec7ec0ec55e156.js
·
Tuesday, 18 August 2015 18:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Thank you for that but I really do not like this solution. This is not a solution, it is a temporary workaround. Can't you rewrite the JS using the jQuery syntax? If you can't, please tell me why.

Also, what about the RokBooster issue? Look, as I wrote in my first comment, I can exclude EasyDiscuss from RokBooster by using either the "Ignored Pages" field or the ""Ignore Files" field under the "Advanced" tab but this is not a solution. By doing that I'm not optimizing the EasyDiscuss pages, I just ignore them in order to prevent the conflicts.

All those issues (both CDN and RokBooster) will be resolved by rewriting the JS using the "jQuery" syntax instead of the "$" syntax. By rewriting your JS you will actually improve the quality of your product. If you are not willing to rewrite it, please let me know what is the reason. Thanks.
·
Wednesday, 19 August 2015 01:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ivo,

This issue has nothing to do with the usage of $ or jQuery actually. This issue is entirely because of the ordering of the scripts that are loaded on the site. The initial script that has to be loaded are those that are from /media/foundry/3.1/xxx . These scripts creates the localized namespace to avoid conflicts with any jquery. Since your compressors are running, they somehow messed up the ordering or reordered those scripts to load later and this caused issues.
·
Wednesday, 19 August 2015 20:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Ok, thank you for the information.
I will try to live with it and keep the EasyDiscuss pages not well optimized.
·
Thursday, 20 August 2015 01:47
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Thursday, 20 August 2015 12:21
·
0 Likes
·
0 Votes
·
0 Comments
·
This also stopped working.
Please check the tabs in EasyDiscuss.
Then check the CDN for Joomla extensions. I have added the files/paths in the "Ignore...." field but it does not work.

RokBooster is disabled.
·
Monday, 24 August 2015 19:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Please update me on this issue.
·
Wednesday, 26 August 2015 22:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Ivo,

I am really sorry that delay of this reply,

I believe last time I put the wrong ignore path when I set environment mode to `development`, now I switch back to use `static` environment mode, then I open the browser console log, then I noticed some of the require script file is different than before.
Take a look of my screenshot here : http://screencast.com/t/WMGEPHhOK2

By the way, I've copy the script path from there then insert into Joomla CDN plugin `ignore file` field, the discuss tab is work fine now.
media/foundry/3.1/config/5a4ade9810991a973bab26847fb2435e.js,media/com_easydiscuss/config/f362c2cac6172235b3bcccd92b3c14bd.js,media/com_easydiscuss/resources/2d5767e36e2eec3b1c9ead28184c876d.js,media/com_easydiscuss/scripts/easydiscuss-3.2.9676.static.min.js


Keep us updated then the result.
·
Friday, 28 August 2015 11:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex
·
Sunday, 30 August 2015 00:10
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Sunday, 30 August 2015 12:58
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post