wilsonpage / fastdom

Eliminates layout thrashing by batching DOM measurement and mutation tasks
6.85k stars 240 forks source link

Question: how to schedule ajax request #94

Closed wshager closed 8 years ago

wshager commented 8 years ago

Should I perform a measurement before I do an ajax request to load addition data, or should I do it after, or both?

aFarkas commented 8 years ago

xhr&fetch has nothing to do with layout. do it has soon as possible. But you might what to schedule your response handler if it does layout.

wshager commented 8 years ago

@aFarkas thanks. How would I schedule my response handler?