By Steve on Thursday, 30 October 2014
Posted in General Issues
Replies 11
Likes 0
Views 0.9K
Votes 0
Hello,

Which is the best way to force refresh style for users if i edited a css?

Thanks
Hello Steve,

I am not really sure what you mean by "force refresh style" but where did you placed your css customizations? Ideally, you should just place the css changes / hacks into your template's css file.
·
Friday, 31 October 2014 01:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

I mean, if i edit style for example more.min.css users should press F5 othervise they will not get new look.
Also found this option
<link rel="stylesheet" href="more.min.css?v=1.1">
but where is the main file which includes css?

Thats why im asking, how to force users to get new style without do refresh.
·
Friday, 31 October 2014 02:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Steve,

Ideally, you should not modify the more.min.css file because these are generated from the "less" files. If you are making changes to the css, you should place your changes in your template's css file.

We might add a new custom.css as override in the future to avoid confusions in the future so you can just place your changes under /templates/YOUR_JOOMLA_TEMPLATE/html/com_easysocial/css/custom.css
·
Friday, 31 October 2014 12:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark's right that it's best to insert css outside of the component. Mark's latest reply made me think of an interesting idea: In ES's settings an optional text field called "Custom Code" where you could place in code that displays through out the ES component. It could render JS and CSS, and possibly other codes if appropriate. This would make it easy to make changes without the usage of a ftp and would be more obvious where to place code tweaks.
·
Friday, 31 October 2014 12:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josh,

We did actually thought about this but if your hosting provider still uses conventional hard disks, it's going to have performance issue if the script needs to keep performing checks if the file exists on the specified path.
·
Friday, 31 October 2014 23:49
·
0 Likes
·
0 Votes
·
0 Comments
·
And with CSS I take it the issue is about it not being cached? Couldn't editing the text area modify the custom.css just like how Joomla does with the template manager? I know I'm swapping subjects from JS to CSS considering that you mentioned the performance issues with JS.
·
Saturday, 01 November 2014 03:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Josh,

Yes, but what you don't see is the performance loss here. Whenever the script tries to do things like checking if a file exists on the server takes a small amount of load time. Although it's just a very tiny footprint, everything counts when users are still stuck with a messed up web hoster
·
Saturday, 01 November 2014 15:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Fair enough. A custom.css file sounds like our best option then with the ability to do a template over ride.
·
Saturday, 01 November 2014 15:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this Josh
·
Saturday, 01 November 2014 15:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Not saying we need this any time soon, but figured I would create a voice for this as seen here: http://stackideas.com/voices/easysocial/item/528
·
Saturday, 01 November 2014 16:56
·
0 Likes
·
0 Votes
·
0 Comments
·
This feature has been added into the next release
·
Saturday, 01 November 2014 22:53
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post