Editing header_required links

Permalink
I am trying to change what css autoloads from the site:
<link href="/updates/concrete5.7.5.13_remote_updater/concrete/css/font-awesome.css" rel="stylesheet" type="text/css" media="all">
<script type="text/javascript" src="/updates/concrete5.7.5.13_remote_updater/concrete/js/jquery.js"></script>
<!--[if lt IE 9]><script type="text/javascript" src="/updates/concrete5.7.5.13_remote_updater/concrete/js/ie/html5-shiv.js"></script><![endif]-->
<!--[if lt IE 9]><script type="text/javascript" src="/updates/concrete5.7.5.13_remote_updater/concrete/js/ie/respond.js"></script><![endif]-->
<link href="/application/files/cache/css/b911a31d595609ee601bb6067f3ee6f4e8a0e7df.css" rel="stylesheet" type="text/css" media="all" data-source="/updates/concrete5.7.5.13_remote_updater/concrete/css/account.css /updates/concrete5.7.5.13_remote_updater/concrete/css/app.css /updates/concrete5.7.5.13_remote_updater/concrete/css/jquery-ui.css">
<link href="/packages/community_store/css/community-store.css" rel="stylesheet" type="text/css" media="all">
<link href="/application/files/cache/css/76e53eec73df6fb0aa017a46925d82098c3e0ee1.css" rel="stylesheet" type="text/css" media="all" data-source="/application/blocks/search/view.css /updates/concrete5.7.5.13_remote_updater/concrete/blocks/autonav/templates/responsive_header_navigation/view.css /updates/concrete5.7.5.13_remote_updater/concrete/css/responsive-slides.css /application/blocks/community_product_list/view.css">


There are a lot of redundant css and I'm trying to streamline it. So I was wondering how you edit this line:
<?php Loader::element('header_required', array('pageTitle' => isset($pageTitle) ? $pageTitle : '', 'pageDescription' => isset($pageDescription) ? $pageDescription : '', 'pageMetaKeywords' => isset($pageMetaKeywords) ? $pageMetaKeywords : ''));?>

mdius
 
hutman replied on at Permalink Reply
hutman
If you are trying to provide your own CSS/JS files rather than having the core provide them for you, you will want to checkout the information about page_theme.php in your theme.

https://documentation.concrete5.org/tutorials/requireasset-and-provi...

As for the meta information, you should let C5 handle that and not put it into your theme, since all of that is editable in the dashboard.
jero replied on at Permalink Reply
jero
What you should find is that the files that get loaded are only present because a block, theme or the concrete5 core has set them as necessary. Looking at your example:

1) Font Awesome - probably a block or theme that uses this font face
2) jQuery - you pretty much need this for anything and everything
3) Compatibility files for old versions of Internet Explorer
4) account/app/jquery-ui - concrete5 core files
5) you have the community store installed, and probably have a product or some other part of the package working on this page
6) search/autonav/responsive-slides - all css files required by various blocks which are most probably used in your page.

So from what I can see, you could remove some of these, but you'll break some or all of your site if you do.