Site Trying to Load Strange Javascript File

Permalink
Hi all. I'm building a site athttp://test.theaustinyoungband.com....

First off, it's loading extremely slowly, to first byte. I am working on that with the host company (IPOWER). If anybody has suggestions to speed that up, I would greatly appreciate them.

The purpose of THIS post, though, is to ask why my home page is trying to load a "ccm.app.js" file from the /concrete/css directory. Here is from the source:

<link rel="stylesheet" type="text/css" href="/concrete/css/ccm.app.js?v=51e7f74d8deab223657a9d547762bac8">


This only happens when logged out. If logged in, the "ccm.app.js" file loads from the /concrete/js directory as it should, along with a "ccm.app.css" from the /concrete/css directory.

This is causing an error when I test my site on tools.pingdom.com. Any ideas how to solve this non-existant file issue? Thanks in advance!

cramaekers
 
mnakalay replied on at Permalink Reply
mnakalay
Have you checked your theme files? Might just be a line that was added by accident.
cramaekers replied on at Permalink Reply
cramaekers
Thanks for your response. This is a custom theme that I built from the ground up and these isn't much in header.php or footer.php. Where else could I look?
mnakalay replied on at Permalink Reply
mnakalay
any add-on you're using could be suspect.
cramaekers replied on at Permalink Reply
cramaekers
I found that it was being caused by the Awkward Slider plugin. In the block's controller.php file, the following was on line 71:
$v->addFooterItem($html->css('ccm.app.js'));

Can somebody explain what this does? I changed it to
$v->addFooterItem($html->javascript('ccm.app.js'));

and the file seems to be properly loading now, along with the slider working properly (which it has all along).

Thanks!
JohntheFish replied on at Permalink Reply
JohntheFish
ccm.app is a bundled and condensed file for all the javascript used by the c5 dashboard and edit functionality. As such, it is often used by addons to get access to javascript utilities and jquery plugins that are already used by C5 and compressed into this file.
cramaekers replied on at Permalink Reply
cramaekers
Thanks for the explanation. With this being said, was it correct for me to change
$v->addFooterItem($html->css('ccm.app.js'));

to
$v->addFooterItem($html->javascript('ccm.app.js'));

in the controller.php file within the Awkward Slider block?
JohntheFish replied on at Permalink Reply
JohntheFish
You need an add header for ccm.app.css and add footer for ccm.app.js.

In some circumstances, ccm.app.js may be used without ccm.app.css, but not the other way round.

So your change was probably correct, but if you notice any styling issues, you may want to add ccm.app.css as well.

Ideally, contact the addon developer through the addon support page and let them know. That way the fix will become official, tested and supported.