astroid-framework
astroid-framework copied to clipboard
fontawesome loaded twice
Hi all.
Astroid 2.6.5
Joomla 4.3.1
Why is the icon font fontawesome loaded twice?
@SerGun78 Yes, I think you are right, one from Joomla and one from Astroid?
My Astroid plugin settongs:
Give this?
@sonvnn I mark that as a bug!
my settings:
I am using template one
Some links about Disabling Joomla loaded fontawesome.... Doesn't seem to be easy? — Need to study that...
Brian Teeman (co-founder of Joomla) is participating on both: https://github.com/joomla/joomla-cms/issues/38898
Look at Brian “solution” here: https://github.com/joomla/joomla-cms/discussions/32533#discussioncomment-410349
Joomla Assets Manager: https://docs.joomla.org/J4.x:Web_Assets
Not sure how to go about it, my guess is that you have to write a “joomla.asset.json” file for the template you are using without the call for awesome????
what does the cassiopeia template have to do with it if I work with astroid one? I understand that the matter is apparently in the systems information of joomla error messages, etc. Maybe then in the astroid plugin provide the ability to load fontawesome from the joomla core, and not just from CDN or Astroid files?!
I show where Cassiopea load directly Awesome, by the template, and, if I understand the posts links, the same file seem to be the place to override these dependencies.
Problem, again if I understand well, Awesome can be call by others joomla.asset.json file by modules or Joomla functions.
Not sure again, but I think we can override Astroid by using a joomla.asset.json in the template Need to try!
joomla.asset.json is find in almost all Joomla components, system, modules.....
If you switch to casiopeia, then fontawesome is loaded again, but minified.
Because you get the “dependencies”
"assets": [
{
"name": "template.cassiopeia.ltr",
"description": "The css file to be used when the site is left to right (LTR).",
"type": "style",
"uri": "template.min.css",
"dependencies": [
"fontawesome"
]
},
and the “uri” related to that dependencies in root > templates > cassiopea > joomla.asset.json
{
"name": "fontawesome",
"type": "style",
"uri": "system/joomla-fontawesome.min.css"
}
No, so far I have no idea how, but the conversation of Brian seem to place that file as the possibility to override???? https://github.com/joomla/joomla-cms/discussions/32533#discussioncomment-410349
Need to test how... and, i guess, it can also be loaded by any Joomla component, modules using its own > joomla.asset.json file...... Lot of fun here!
@SerGun78 @Chacapamac This library use for Joomla editor in frontend. If you disable or remove it. Some icon of editor will disappear then you can not use Editor in frontend. Let's consider about it.
Thanks & Best Regards, Sonny
sonvnn, ok. then is it possible to completely disable the ability to edit the site through the frontend?
in the frontend, the same icon from different css is loaded
module editing:
material editing: