Which types of queues are in event loop?

前端 未结 3 1925
走了就别回头了
走了就别回头了 2021-01-14 14:10

I am faced with the mention of render queue in different articles (example, example) Both authors say that

render callback is given the

3条回答
  •  攒了一身酷
    2021-01-14 14:22

    1) render callback is given the highest priority. Is it true?

    I think so from my reading of the link below.

    2) Does render queue exist as separate queue or is it alias for render callbacks?

    The link below says it is the same task queue, the "Event" task queue.

    3) Which callbacks are render? As I take in any repaint is render callback

    I think the render callback is basically the process of the browser periodically trying to repaint/render the screen based on the latest updates to the dom.

    4) Are there any other types of queues and if there are where can I read about them?

    Yes, see details here: https://html.spec.whatwg.org/multipage/webappapis.html#task-queue

    This seems to be the best coverage of this: https://html.spec.whatwg.org/multipage/webappapis.html#event-loops

提交回复
热议问题