下一节 有关预加载与按需加载的描述将有助于您理解这两种方法的权衡。
The next section on preloading vs. load on demand will help you understand the tradeoffs inherent in making this decision.
但是如果页面动态创建了一个标记来按需加载数据,那么就很有必要知道标记是何时完成的。
But when the page creates a tag on the fly to load data on request, it's important to know when that tag is complete.
为何? 单独的组件通常是该文件默认的导出,可以用路由器实现按需加载。
Why? A single component can be the default export for its file which facilitates lazy loading with the router.
应用推荐