mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 10:15:37 +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) {
|
||||
postEnhanceDOM(dom); // mutate dom
|
||||
queueMicrotask(() => postEnhanceDOM(dom));
|
||||
// postEnhanceDOM(dom); // mutate dom
|
||||
}
|
||||
|
||||
enhancedContent = dom.innerHTML;
|
||||
|
|
|
@ -180,7 +180,7 @@ export function saveStatus(status, instance, opts) {
|
|||
|
||||
// THREAD TRAVERSER
|
||||
if (!skipThreading) {
|
||||
requestAnimationFrame(() => {
|
||||
queueMicrotask(() => {
|
||||
threadifyStatus(status, instance);
|
||||
if (status.reblog) {
|
||||
threadifyStatus(status.reblog, instance);
|
||||
|
|
Loading…
Reference in a new issue