We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 766f859 commit 1551450Copy full SHA for 1551450
chatgpt-infinity/firefox/extension/popup/controller.js
@@ -204,7 +204,9 @@
204
moreExtensionsSpan.onclick = () => { open(app.urls.relatedExtensions) ; close() }
205
moreExtensionsSpan.append(moreExtensionsIcon) ; footer.append(moreExtensionsSpan)
206
207
- // Remove loading spinner
208
- document.querySelectorAll('[class^=loading]').forEach(elem => elem.remove())
+ // Remove LOADING SPINNER after imgs load
+ Promise.all([...document.querySelectorAll('img')].map(img =>
209
+ img.complete ? Promise.resolve() : new Promise(resolve => img.onload = resolve)
210
+ )).then(() => document.querySelectorAll('[class^=loading]').forEach(elem => elem.remove()))
211
212
})()
0 commit comments