Hi,

I have a custom CSS file for my application and am just trying out various tweaks to the UI by altering the CSS. I can get the custom CSS to be usedd by the application but it seems to be very inconsistent in terms of my changes being picked up.

For example, if I change some CSS or add something new, it seems like pot luck as to when the change will be picked up; usually it is a combination stopping/starting Tomcat, changing the CSS filename on the application back and forth, closing/restarting the IDE; a simple CSS change might take me a few seconds to do but I can spend quite some time waiting for them to be picked up, sometimes I have to repeat all of the above several times and sometimes (not often) changes are picked up quickly.

Am I missing something here?

Has anybody else found a similar issue?

Thanks,

Craig.

asked 12 May '13, 09:13

Craig's gravatar image

Craig
1.1k134
accept rate: 6%

edited 12 May '13, 09:26


Hi Craig,

It is usually a matter of clearing the browser cache and then refreshing the page. Other options are to use the Chrome Incognito window to test changes to the CSS (as the incognito window does not caache anything, a page refresh should be enough. What i use in Chrome is an extension, called CSS Refresh. After installing this plugin, you can refresh the CSS by CTRL + Alt + R, or right click on page and click the added option 'Refresh CSS'. (it applies the new CSS to the page, but does not replace it in the browser cache, so you must clear the browser cache once the changes are final)

Best, Michiel

link

answered 12 May '13, 14:22

Michiel%20A's gravatar image

Michiel A
5161543
accept rate: 13%

Hi Michiel,

That works a treat :)

Thanks,

Craig.

link

answered 12 May '13, 14:48

Craig's gravatar image

Craig
1.1k134
accept rate: 6%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×22

Asked: 12 May '13, 09:13

Seen: 1,125 times

Last updated: 12 May '13, 14:48


© Copyright Gerger 2017