less / less/less.js

less with @import on main thread - Chrome > 101

Open
#3,727 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
17k
Forks
3.4k
Avg merge
7h 42m
Merged PRs (30d)
26

Description

To reproduce:

<html>
<head>
<style  type="text/less"> 
 @import "test.less";
</style> 
<script src="less.js"></script>

<script>
console.log("script resumed at main page");
<script>
</head>
<body>
test
</body>
</html>

// less code here
test.css

body {
 background-color: red;
}

Current behavior:

Chrome version > 101 - after less imports the test.less - the control never comes back to main page to continue the processing
Chrome version < 101 - Everything works well

Environment information:

Tested with all versions of less to same result.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with the HTML example, less.js, test.less, and test.css in Chrome versions above and below 101. Investigate why processing does not return to the main page after the import; done means the main-page script resumes after the import without regressing older Chrome behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.