mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 12:18:51 +03:00
Test queueMicrotask
This commit is contained in:
parent
53b1755e51
commit
cfe41cb802
2 changed files with 3 additions and 2 deletions
|
@ -244,7 +244,8 @@ function _enhanceContent(content, opts = {}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (postEnhanceDOM) {
|
if (postEnhanceDOM) {
|
||||||
postEnhanceDOM(dom); // mutate dom
|
queueMicrotask(() => postEnhanceDOM(dom));
|
||||||
|
// postEnhanceDOM(dom); // mutate dom
|
||||||
}
|
}
|
||||||
|
|
||||||
enhancedContent = dom.innerHTML;
|
enhancedContent = dom.innerHTML;
|
||||||
|
|
|
@ -180,7 +180,7 @@ export function saveStatus(status, instance, opts) {
|
||||||
|
|
||||||
// THREAD TRAVERSER
|
// THREAD TRAVERSER
|
||||||
if (!skipThreading) {
|
if (!skipThreading) {
|
||||||
requestAnimationFrame(() => {
|
queueMicrotask(() => {
|
||||||
threadifyStatus(status, instance);
|
threadifyStatus(status, instance);
|
||||||
if (status.reblog) {
|
if (status.reblog) {
|
||||||
threadifyStatus(status.reblog, instance);
|
threadifyStatus(status.reblog, instance);
|
||||||
|
|
Loading…
Reference in a new issue