Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh delay affects stylesheet injection too? #706

Closed
maxwellhibbert opened this issue Sep 18, 2023 · 3 comments
Closed

Refresh delay affects stylesheet injection too? #706

maxwellhibbert opened this issue Sep 18, 2023 · 3 comments

Comments

@maxwellhibbert
Copy link

I'm working with an external server (not local) where files are uploaded on save, so I have set a refresh delay, which works as expected. I'm also using the stylesheet injection so no refresh needs to occur for styles.

When I save a stylesheet, I wasn't expecting stylesheet injection to also be delayed. Is this a bug?
I can't imagine it being useful to have a delay for a file that's being injected.

@bdkjones
Copy link
Owner

No, that's not a bug. "Injection" means that CodeKit tells the browser to reload the CSS file associated with a particular link tag, re-parse that CSS, and then repaint the viewport (without reloading the underlying HTML).

The new CSS file must be present on the server when the "injection" begins or what you'll get is a re-paint of the old CSS.

@bdkjones bdkjones closed this as not planned Won't fix, can't repro, duplicate, stale Sep 18, 2023
@maxwellhibbert
Copy link
Author

What if I'm using Override remote CSS?
If I remove the delay and save a stylesheet, the styles are injected instantly and there's no full refresh.

But then I have no delay for the template/markup...

@maxwellhibbert
Copy link
Author

I've added a new issue that's more specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants