async version of querySelector()
and querySelectorAll()
npm i async-query-selector-all
import {
asyncQuerySelector,
asyncQuerySelectorAll,
} from 'async-query-selector-all'
const app = await asyncQuerySelector('.app')
const button = await asyncQuerySelector('button', app)
for await (const img of asyncQuerySelectorAll('img[hidden]', app)) {
img.hidden = false
}