c5 inserting extra markup - can this be removed?
Permalink
Hi
Building my first site with concrete5 and learning a lot along the way. Really slick!
I'm noticing that my resulting markup has extra includes and I'm not sure relevant they are when c5 is not in edit mode:
There seem to be extra http requests to 'ccm.bass.css' and 'ccm.base.js' and then there's #blockStyle69Main2 css. Are there any tips to tidying it up? I'm not used to having a cms inserting extra markup that I have no control over...or do I?
Ideally I'd like to minimise http requests, guess I'm a bit fussy like that! So if they are included when c5 goes into edit mode, I'm down with that, but when I log out I want it to be clean.
Whilst I'm on this, c5 includes its own version of jQuery v1.7.2 that it includes, am I stuck with that? I usually have one monolithic JS file that includes the jquery right at the top (a later version).
thanks in advance
Si
Building my first site with concrete5 and learning a lot along the way. Really slick!
I'm noticing that my resulting markup has extra includes and I'm not sure relevant they are when c5 is not in edit mode:
<script type="text/javascript"> var CCM_DISPATCHER_FILENAME = '/basesite/index.php'; var CCM_CID = 124; var CCM_EDIT_MODE = false; var CCM_ARRANGE_MODE = false; var CCM_IMAGE_PATH = "/basesite/concrete/images"; var CCM_TOOLS_PATH = "/basesite/index.php/tools/required"; var CCM_BASE_URL = "http://localhost:8888"; var CCM_REL = "/basesite"; </script> <link rel="stylesheet" type="text/css" href="/basesite/concrete/css/ccm.base.css?v=cae8e0721f2355ab6857d4b6dde24112" /> <script type="text/javascript" src="/basesite/concrete/js/jquery.js?v=cae8e0721f2355ab6857d4b6dde24112"></script> <script type="text/javascript" src="/basesite/concrete/js/ccm.base.js?v=cae8e0721f2355ab6857d4b6dde24112"></script> <style type="text/css"> #blockStyle69Main2 {background-repeat:no-repeat; }
Viewing 15 lines of 17 lines. View entire code block.
There seem to be extra http requests to 'ccm.bass.css' and 'ccm.base.js' and then there's #blockStyle69Main2 css. Are there any tips to tidying it up? I'm not used to having a cms inserting extra markup that I have no control over...or do I?
Ideally I'd like to minimise http requests, guess I'm a bit fussy like that! So if they are included when c5 goes into edit mode, I'm down with that, but when I log out I want it to be clean.
Whilst I'm on this, c5 includes its own version of jQuery v1.7.2 that it includes, am I stuck with that? I usually have one monolithic JS file that includes the jquery right at the top (a later version).
thanks in advance
Si
One of the poor points of c5 is it does tend to splurge out http requests. Miser (not an addon, seehttp://www.concrete5.org/developers/open-source/... ) can aggregate assets.
It is rumoured that c5.7 will have similar asset aggregation available.
It is rumoured that c5.7 will have similar asset aggregation available.
I think it's more than a rumor when you look at this video :)
http://www.youtube.com/watch?v=kU5Zllx_BB4...
http://www.youtube.com/watch?v=kU5Zllx_BB4...
Hi John
Interestingly, that is the output that I get when not logged into to c5, therefore not showing the dashboard.
So I shouldn't be getting the ccm css and js files should I?
cheers
Interestingly, that is the output that I get when not logged into to c5, therefore not showing the dashboard.
So I shouldn't be getting the ccm css and js files should I?
cheers
When not logged in and, for example, just viewing the home page, those files are not needed. However, as I noted, they may be loaded by addons. They may also be loaded by themes.
Ideally, start with a clean browser session and no cache to double check.
Ideally, start with a clean browser session and no cache to double check.
ccm.app js and css are dashboard code. They are only added when you are logged in and the dashboard bar is showing, or where some addons use dashboard utilities in the front end of the site.