You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loadScript or loadCSS is called multiple times in parallel, the subsequent invocations after first call doesn't wait for script loading or parsing. It returns resolved promise
Actual Behaviour
loadScript or loadCSS should return pending promise if loading or parsing is still in progress
Steps to Reproduce
call loadScript or loadCSS multiple times in same page with same src url
@rofe@sdmcraft
The current assumption is that script will be loaded only once in block and works in most of the cases.
In case developer is using some utility function which internally loads some script, he/she will have to ensure that function is not called multiple times in a row
Can you please suggest if this issue is worth addressing ?
Expected Behaviour
When loadScript or loadCSS is called multiple times in parallel, the subsequent invocations after first call doesn't wait for script loading or parsing. It returns resolved promise
Actual Behaviour
loadScript or loadCSS should return pending promise if loading or parsing is still in progress
Steps to Reproduce
Sample Code that illustrates the problem
Test page where it fails:
https://issue-399-demo--franklin-assets-selector--hlxsites.hlx.page/_drafts/yug/demo
Test page with fix applied:
https://issue-399-fix--franklin-assets-selector--hlxsites.hlx.page/_drafts/yug/demo
The text was updated successfully, but these errors were encountered: