Closed thepeoplesbourgeois closed 4 years ago
Thank you for the suggestion and welcome to the bottom of the stack :)
Making the loading parallel would break paredit as index.js defines window.paredit
(https://github.com/rksm/paredit.js/blob/master/index.js#L9) and the other modules expect the global to be present.
Noticed that this process would be blocked in the
for
loop as each module being loaded wasawait
ed in sequence, thought I'd suggest getting the promises back fromreload()
viamap
so that the modules could be loaded in parallel and the function could finish whenawait Promise.all
completed.Not sure if this breaks the function or not; not a Paredit user, just arrived here as I traversed down a rabbit hole from Gitlab's Web IDE documentation page