Find Answers and Get Support › Forums › Cera – Intranet & Community Theme › Feature Requests › reduce unused css
- This topic has 2 replies, 3 voices, and was last updated 3 years ago by
Manathan.
-
AuthorPosts
-
monasrParticipant@monasr12
- 31 Topics
- 54 Posts
Up::0i have a suggestion to reduce unused css.
i think that cera main css file and other files contain all the styles for all the website including “post css,page css,fourm css,group css, …..”
so why Donot you separate them to:-
1.post css alone “posts.css”
2.page cs alone “pages.css”
3.forum css alone in “forum.css”
4.knowledge base css alone.
….
and please make a complete file for RTL CSS in one file so reduce https requests.
…..
so I am as a developer run only the “posts.css” in posts type and prevent other files using “asset cleanup plugin” for example?
i hope you understand my words wellMarch 20, 2022 at 16:31 #39459@roboraptor- 0 Topics
- 420 Posts
Hi there,
Thanks for getting in touch!
We provide support only during Belgian business hours (Monday to Friday, from 8:30 am – 5:30 pm CEST), and our current response time can be up to 1 business day. We’ve received your request and we’ll get you an answer ASAP.
We really thank you for your patience!
In the meantime, feel free to check out our documentation resources for more help:
Kind regards,
March 20, 2022 at 16:31 #39460@themodactyl- 0 Topics
- 6738 Posts
Hi Monasr,
Thank you for sharing your suggestion. That’s really a good idea! Note that we have built our theme following this pattern. 🙂
Be sure we continually improve the performances of our themes. Be aware that to reduce repetition in CSS, and improve powerful runtime effects like theme switching, we use variables to customize our theme.
Moreover, we developed some additional plugins (Grimlock for BuddyPress, Grimlock for bbPress, Grimlock for the Events Calendar, etc). We didn’t choose to make all the style in the theme to keep it as light as possible. Each plugins needs his Grimlock plugin to be compatible with the theme. For exemple: if you don’t want to use BuddyPress, you don’t need the style of BuddyPress. Some theme authors include this style directly in the theme, we don’t. This would have slowed down your website, this is why we choose to work differently and include this style in a plugin. To apply the theme style to BuddyPress, you need to install Grimlock for BuddyPress.
Please also be aware that it’s more complicated than that, but I tried to explain you as clear as possible how it works.
First of all, we would like to remind you that a theme affects the presentation and visual style of your site, while plugins add all kinds of features and functionalities. In most cases, performances issues are related to third party plugins, not our theme. To make sure that our theme doesn’t have anything to do with that, I suggest you to install a website with our theme without any extra plugins to check the performances.
Regarding performances, here is some extra tips that could help go through this issue:
- Check the WordPress prerequisites here: WordPress requirements
If your website doesn’t have the prerequisites, it won’t work correctly and might slow down your website. - Use a good host. We use WP Engine to host all our demos.
A faster server with proper settings will make your website load quicker. Some hosts also offer preset caching systems that will also improve loading times.
The performances of your website can also be improved, like our demos, by some additional plugins:
- WP Rocket: Improving the speed of your WordPress site with caching options.
- Imagify: Shrinking your images with lowest quality loss.
If your images are too big, I’m sure you can understand that your pages will load more slowly. - Imsanity: Automatically resizing huge image uploads
Of course, these are basics advises and you can always add more stuff to improve your page loading time but this is a pretty good start.
The more important advise we can give you: limit the number of plugins! As you know, too many plugins will considerably slow down your page loading time. So, we advise to stick to the bare minimum! Let’s imagine that a user uses 50 plugins on his website. In this case, there is little chance that his site will work quickly, regardless of the theme used. Did you know that only two plugins (Grimlock and Kirki) are actually required to make our theme perfectly work? You can rest assured that our theme will work fine and perform better without few plugins installed.
I really hope this will help you better understand how our theme works. But please, if you have any other suggestions, feel free to create other forum topics. We appreciate constructive criticism and encourage our users to share their ideas. 🙂
Kind regards,
March 21, 2022 at 09:51 #39469 -
AuthorPosts
You must be logged in to reply to this topic.