Synchronous Concurrency

Both ASViewController and ASCellNode have a property called neverShowPlaceholders.

By setting this property to YES, the main thread will be blocked until display has completed for the cell or view controller’s view.

Using this option does not eliminate all of the performance advantages of AsyncDisplayKit. Normally, a given node has been preloading and is almost done when it reaches the screen, so the blocking time is very short. Even if the rangeTuningParameters are set to 0 this option outperforms UIKit. While the main thread is waiting, all subnode display executes concurrently, thus synchronous concurrency.

node.neverShowPlaceholders = YES;

Usually, if a cell hasn’t finished its display pass before it has reached the screen it will show placeholders until it has drawing its content. Setting this option to YES makes your scrolling node or ASViewController act more like UIKit, and in fact makes AsyncDisplayKit scrolling visually indistinguishable from UIKit’s, except that it’s faster.

Edit on GitHub