diff options
author | Tanner Dolby <tannercdolby@gmail.com> | 2022-02-22 01:49:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 17:49:36 +0800 |
commit | 6e9fe98036090a37cc6247b873845505e5b512fb (patch) | |
tree | 5fc00117ddfd9f448eb9e8011b5bd7f6d8000e8d /files/zh-cn/web/api/queuemicrotask | |
parent | 70c3e11f3335e7701325f125fd712c84d6c1f9bf (diff) | |
download | translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.gz translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.bz2 translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.zip |
Removes empty <div> or <p> elements from pages (#3093)
* Removes all empty paragraph elements
* Removes all empty div elements
* Preserve empty div in code snippet
* Preserve empty elements inside code snippets
* Remove fr files which were converted into markdown
* Web/CSS/transform-function/scaleX()/index.html
The file is already renamed to index.md。
* remove not needed file
* Resolve remaining conflict
Co-authored-by: julieng <julien.gattelier@gmail.com>
Co-authored-by: Masahiro FUJIMOTO <mfujimot@gmail.com>
Diffstat (limited to 'files/zh-cn/web/api/queuemicrotask')
-rw-r--r-- | files/zh-cn/web/api/queuemicrotask/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/queuemicrotask/index.html b/files/zh-cn/web/api/queuemicrotask/index.html index 9079205222..5da2006fc3 100644 --- a/files/zh-cn/web/api/queuemicrotask/index.html +++ b/files/zh-cn/web/api/queuemicrotask/index.html @@ -16,7 +16,7 @@ original_slug: Web/API/WindowOrWorkerGlobalScope/queueMicrotask <div><span class="seoSummary">{{domxref("Window")}} 或 {{domxref("Worker")}} 接口的 <code><strong>queueMicrotask()</strong></code> 方法,queues a microtask to be executed at a safe time prior to control returning to the browser's event loop.</span>microtask 是一个简短的函数,它将在当前任务(task)完成其工作之后运行,并且在执行上下文的控制返回到浏览器的事件循环之前,没有其他代码等待运行。The microtask is a short function which will run after the current task has completed its work and when there is no other code waiting to be run before control of the execution context is returned to the browser's event loop.</div> -<div></div> + <p>This lets your code run without interfering with any other, potentially higher priority, code that is pending, but before the browser regains control over the execution context, potentially depending on work you need to complete. You can learn more about how to use microtasks and why you might choose to do so in our <a href="/en-US/docs/Web/API/HTML_DOM_API/Microtask_guide">microtask guide</a>.</p> |