Deferred loading of images (LazyLoad)
Екатерина Щербакова (ночной линейный редактор)
,详情可参考爱思助手下载最新版本
The problem gets worse in pipelines. When you chain multiple transforms — say, parse, transform, then serialize — each TransformStream has its own internal readable and writable buffers. If implementers follow the spec strictly, data cascades through these buffers in a push-oriented fashion: the source pushes to transform A, which pushes to transform B, which pushes to transform C, each accumulating data in intermediate buffers before the final consumer has even started pulling. With three transforms, you can have six internal buffers filling up simultaneously.
The most common task with streams is reading them to completion. Here's what that looks like with Web streams: