adobe / adobe/aem-lib

Fix race condition in parallel loadScript/loadCSS calls

Open
#202 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
5
Forks
11
Avg merge
9h 50m
Merged PRs (30d)
4

Description

**Problem:**
When `loadScript` or `loadCSS` is called in parallel with the same URL, the functions resolve too early because they check for existing script/link tags but don't wait for pending loads.

**Related Issue:** adobe/aem-boilerplate#399

Contributor guide

Open the contributing guide

Research direction

Search the repository for the loadScript and loadCSS entry points and inspect how they handle existing script or link tags. Reproduce parallel calls for the same URL, then ensure completion is delayed until the pending load finishes; add or update a focused test if the repository has coverage for these helpers.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.