上一页 1 ··· 407 408 409 410 411 412 413 414 415 ··· 494 下一页
摘要: fetch() does the same thing as XHR, but fetch return a promise. Check the reponse API here: Link Besides text(), you can use json() or blob(). 'no-cor 阅读全文
posted @ 2016-06-25 21:06 Zhentiw 阅读(371) 评论(0) 推荐(0)
摘要: You can fine tune several webpack plugins to make your bundle as small as it can be for your specific application. However there are a few things you 阅读全文
posted @ 2016-06-25 01:51 Zhentiw 阅读(274) 评论(0) 推荐(0)
摘要: When you have a dependency that does not export itself properly, you can use the exports-loader to force it to export the pieces of the file that you 阅读全文
posted @ 2016-06-25 01:22 Zhentiw 阅读(263) 评论(0) 推荐(0)
摘要: When you use ngrx/store and you want to fire a service request. When it sucessfully return the response, you need to dispatch action to tell the store 阅读全文
posted @ 2016-06-24 03:02 Zhentiw 阅读(272) 评论(0) 推荐(0)
摘要: If you have a multi-page application (as opposed to a single page app), you’re likely sharing modules between these pages. By chunking these common mo 阅读全文
posted @ 2016-06-23 01:59 Zhentiw 阅读(254) 评论(0) 推荐(0)
摘要: Often, you have dependencies which you rarely change. In these cases, you can leverage the CommonsChunkPlugin to automatically put these modules in a 阅读全文
posted @ 2016-06-23 01:12 Zhentiw 阅读(316) 评论(0) 推荐(0)
摘要: Leveraging the browser cache is an important part of page load performance. A great way to utilize this cache is by versioning your resources. In this 阅读全文
posted @ 2016-06-22 21:45 Zhentiw 阅读(237) 评论(0) 推荐(0)
摘要: As a Single Page Application grows in size, the size of the payload can become a real problem for performance. In this lesson, learn how to leverage c 阅读全文
posted @ 2016-06-22 21:16 Zhentiw 阅读(194) 评论(0) 推荐(0)
摘要: If you're going to use code splitting with Webpack 2, you'll need to make sure the browser has support for the ES6 Promise API. This means that if you 阅读全文
posted @ 2016-06-22 20:50 Zhentiw 阅读(426) 评论(0) 推荐(0)
摘要: The less code you can send to the browser, the better. The concept of tree shaking basically says that if you’re not using some piece of code, then ex 阅读全文
posted @ 2016-06-22 04:15 Zhentiw 阅读(268) 评论(0) 推荐(0)
上一页 1 ··· 407 408 409 410 411 412 413 414 415 ··· 494 下一页