bdkjones/CodeKit — Issue #244: Delay before auto-reload
Author: elivz
Created: 2012-03-02 05:10:13+00:00
State: open

I am using CodeKit to auto refresh by browser when I save, which is great. Except that I also have a plugin (Sublime Editor SFTP) that uploads the CSS file to my server every time I save. If I use "inject changes without a full reload", it usually tries to pull the new stylesheet in midst-upload, unstyling the page completely. A simple fix for this would be to allow for a slight delay before the new styles are injected. Even half a second should be enough to let the SFTP plugin write the new file to the server.

An alternate fix - which would be great but would require much deeper changes to the code - is to inject the local changes into the remote page. This would be similar to the way CSSEdit used to work (I'm not sure since it merged with Espresso... probably still works this way). So if the html is pulling styles from http://domain.com/styles/main.css and I'm editing /styles/main.css on my local machine, CodeKit would guess that I want to override the remote stylesheet with my local copy. Then I would just upload the CSS file at the end of an editing session.

.... Or maybe there is another solution to this already that I am just missing. In any case, I just started using CodeKit and am loving it so far.