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

Inconsistent behaviour when refreshing circular referenced templates #1731

Open
andrewwakeling opened this issue Dec 13, 2013 · 2 comments
Open

Comments

@andrewwakeling
Copy link

Create template called circular.less as below:

@import "circular.less";

Declare it in the head element via a link element.

When loading the page for the first time, it only loads circular.less once.

In the developer console, type:

less.refresh()

Verify that it loads circular.less 3 times.

If the circular reference occurs across 2 files, it will load the 2 files twice.
If the circular reference occurs across 3 files, it will load the 3 files once then the first 2 again.

I'm not sure what the expected behaviour is, but this seems a little fishy.

This is vaguely related to #1484.

@lukeapage
Copy link
Member

I think its because of the async loading - I'd like to make a change to process files in the same order regardless of the order they get loaded in from, which should fix this.

However I assume this isn't causing you big issues? it is a low bug?

@andrewwakeling
Copy link
Author

Yeah, this isn't causing me any issues at the moment. It was just an observation I made when doing some testing.

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

No branches or pull requests

2 participants