Keyword

To make k2.css lighter

  • simone
  • simone's Avatar Topic Author
  • Offline
  • New Member
More
14 years 3 months ago #83959 by simone
To make k2.css lighter was created by simone
Hello!
I wanto make k2.css lighter 
in k2.css file there are some empty {} (196 occurrences) that could be deleted if i dont want to style it, right?

I can delete it without problems? Can I delete also the lines that have those empty {}?

And, if I can do it, must I delete also references in php files? 

thanks

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #83960 by FeSys
Replied by FeSys on topic To make k2.css lighter
Hi..
Why not just break up your k2.css file into multiple small one.
e.g:
k2.css @importa the following
k2comment.css
k2latestitems.css
k2categories.css
....
it works fine, load smooth and quick for me.

Please Log in or Create an account to join the conversation.

  • simone
  • simone's Avatar Topic Author
  • Offline
  • New Member
More
14 years 3 months ago #83961 by simone
Replied by simone on topic To make k2.css lighter
if I can do it, must I delete also references in php files?
sorry for the question

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #83962 by troponin
Replied by troponin on topic To make k2.css lighter
no. If you delete the style and the references from the html is still there the only thing that happens is that the html fragment isn't styled.

Please Log in or Create an account to join the conversation.

  • simone
  • simone's Avatar Topic Author
  • Offline
  • New Member
More
14 years 3 months ago #83963 by simone
Replied by simone on topic To make k2.css lighter
thank you,
with a template like quasar that load a huge quantity of css i need to break them until my site goes fastly

can you suggest me some other tricks to make it fastly?

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #83964 by Simon Wells
Replied by Simon Wells on topic To make k2.css lighter
I would consider trimming the css that is not needed in Quasar.
How many css files does it ship with, how many of the style variations do you need to use?

Both Troponin and Followeyes, hi guys, offer valid advise.
If you remove any css element or file, it will just use defaults set by Joomla or not appear correctly.
Remove any classes with {}.

There will also be some instances, where several classes use the same setting so they can be joined together.

Consider also, do you use the gzip functions in Joomla?

Also, the css will be a part of the factor of speed, you will also need to consider how many scripts are being loaded and the qty and size of images too.

Simon
K2 Support

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #83965 by troponin
Replied by troponin on topic To make k2.css lighter
You can use a css compressor (there are several in web) but be patient that they dont destroy your css (backup).
Another way would be to compress it with ob_gzhandler.

Never used something like this, so take care.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum