Buy Now
Sign in

semanticui and CEGCore2

benbeek , April 17 at 09:30
B
benbeek
I want to move websites from Chronoforms 4 to Chronoforms 6, but I have troubles with new functionality in Chronoforms 6.​
​​
​A lot of css is automatic generated ( semanticui-styling ) and implied on the form. ​
​CEGCore2 makes a lot of large css files (300Kb) in folder libraries/cegcore2/cache and implies that css multiple times (I have seen the same css implied up to six times), eg:
.semanticui-body h1, .semanticui-body h2, ... {​
​ line-height: 1.2857em;​
​ margin: calc(26.0001px) 0em 14px;​
​ font-weight: bold;​
​ padding: 0em;​
​}
This means that, if I make my h1 font-weight: normal, Chronoforms6 overrules this setting up to 6 times in font-weight: bold. To do that it implies 6 times 300Kb of css (!)​
​​
​I think you understand that I am not happy with this. Can I turn off this semanticui css that I do not need and the CEGCore2-caching system? Turning off the CEGCore2 library does not help (it keeps placing css files in libraries/cegcore2/cache and keeps using them).​
​​
​Regards,​
​Ben
admin
Hi Ben,
The files are generated based on the output, so if you create the form then you do not change it then only 1 file will be generated, but other files are generated for the admin area too, this can be enhanced in a future update.
There is no way to disable the Semantic ui, and usually the total size of cache will not exceed 5MB of space or so
Best regards
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
B
benbeek
Thanks for your reply Max.

​In Chronoforms 4 there was a form setting "Load Chronoforms files" where you could choose between all / needed / none. ​
​I can see that semanticui is needed for the administratorside of Chronoforms, but I would like be able to choose what css and js is loaded.​
​For a simple form 5Mb of extra css is an overload. And the behavior of CegCore that repeats this css several times is weird (that is: I do not understand why this is needed).
Because now my own css file is overruled multiple times by this, I can not use Chronoforms 6.
Regards,
Ben
admin
Hello Ben,
In the latest update the files should not be repeated, and the total CSS file size is about 0.5 MB, this is very low specially if you enable the GZip compression on your website which is the recommended.
Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!
B
benbeek
Thanks for this update Max, will look into it.
Regards,
Ben