load favicons earlier + show bads as ?
This commit is contained in:
parent
f5b2fe2fc6
commit
51e9b09f52
|
@ -480,9 +480,9 @@ const dom = {};
|
|||
prefs.ready.then(() => {
|
||||
waitForSelector('details[data-pref]', {recur: Collapsible.bindEvents});
|
||||
});
|
||||
window.on('load', () => {
|
||||
window.requestIdleCallback(() => {
|
||||
require(lazyScripts);
|
||||
}, {once: true});
|
||||
});
|
||||
})();
|
||||
|
||||
//#endregion
|
||||
|
|
|
@ -678,6 +678,18 @@ button .svg-icon,
|
|||
filter: none;
|
||||
}
|
||||
|
||||
.newUI .target b::after {
|
||||
content: '?';
|
||||
margin-left: -20px;
|
||||
position: absolute;
|
||||
background: var(--c85);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
text-align: center;
|
||||
border-radius: 50%;
|
||||
color: var(--bg);
|
||||
}
|
||||
|
||||
/* Default, no update buttons */
|
||||
.updater-icons .update,
|
||||
.updater-icons .check-update {
|
||||
|
|
|
@ -100,11 +100,11 @@ newUI.renderClass();
|
|||
|
||||
showStyles(styles, ids);
|
||||
|
||||
window.on('load', () => require([
|
||||
setTimeout(require, 0, [
|
||||
'/manage/import-export',
|
||||
'/manage/incremental-search',
|
||||
'/manage/updater-ui',
|
||||
]), {once: true});
|
||||
]);
|
||||
})();
|
||||
|
||||
msg.onExtension(onRuntimeMessage);
|
||||
|
|
|
@ -263,6 +263,7 @@ async function getFaviconSrc(container = installed) {
|
|||
favicon = favicon ? favicon[1].replace(/\W+$/, '') : '';
|
||||
}
|
||||
if (!favicon || badFavs && badFavs.includes(favicon)) {
|
||||
if (!target.firstElementChild) target.prepend($create('b'));
|
||||
continue;
|
||||
}
|
||||
if (favicon !== OWN_ICON) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user