Analyze JS a second time after a 5s delay to capture async scripts

main
Elbert Alias 4 years ago
parent 06b254ebed
commit 4a02b9aef5

@ -92,7 +92,14 @@ const Content = {
language,
])
Content.onGetTechnologies(await Content.driver('getTechnologies'))
const technologies = await Content.driver('getTechnologies')
Content.onGetTechnologies(technologies)
// Delayed second pass to capture async JS
await new Promise((resolve) => setTimeout(resolve, 5000))
Content.onGetTechnologies(technologies)
} catch (error) {
Content.driver('error', error)
}