Skip to content

feat: wait load js for lms#5

Merged
andrey-canon merged 2 commits intoopen-release/teak.nelpfrom
teak-mig/FUTUTREX-1240
Dec 1, 2025
Merged

feat: wait load js for lms#5
andrey-canon merged 2 commits intoopen-release/teak.nelpfrom
teak-mig/FUTUTREX-1240

Conversation

@andrey-canon
Copy link
Collaborator

Description

Fix cloudfront compatibility with missing js files loads.

This ensure to load the extra js files before xblock is called.

Migration pr of #1

Issue # 1240

* chore: append script to the element

* refactor: move async behaviour for main function

With pr suggestion the async behaviour is only used to load the promises of loading scripts.
Then xblock is called if all js files load as expected.
Also StaffGradedAssignmentXBlock is preserved not async, so now we wait for loadJs promises.
Copy link
Collaborator

@johanseto johanseto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrey-canon andrey-canon changed the base branch from teak-mig/FUTUREX-1219 to open-release/teak.nelp December 1, 2025 21:59
@andrey-canon andrey-canon merged commit 38022ce into open-release/teak.nelp Dec 1, 2025
2 of 6 checks passed
@andrey-canon andrey-canon temporarily deployed to open-release/teak.nelp December 1, 2025 21:59 — with GitHub Actions Inactive
@andrey-canon andrey-canon deployed to open-release/teak.nelp December 1, 2025 21:59 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants