Book Image

TypeScript High Performance

By : Ajinkya Kher
Book Image

TypeScript High Performance

By: Ajinkya Kher

Overview of this book

<p>In a world where a tiny decrease in frames per second impacts customer engagement greatly, writing highly scalable code is more of a necessity than a luxury. Using TypeScript you get type checking during development. This gives you the power to write optimized code quickly. This book is also a solid tool to those who’re curious to understand the impact of performance in production, and it is of the greatest aid to the proactive developers who like to be cognizant of and avoid the classic pitfalls while coding.</p> <p>The book will starts with explaining the efficient implementation of basic data Structures, data types, and flow control. You will then learn efficient use of advanced language constructs and asynchronous programming. Further, you'll learn different configurations available with TSLint to improve code quality and performance. Next, we'll introduce you to the concepts of profiling and then we deep dive into profiling JS with several tools such as firebug, chrome, fiddler. Finally, you'll learn techniques to build and deploy real world large scale TypeScript applications.</p>
Table of Contents (17 chapters)
Title Page
Credits
Foreword
About the Author
Acknowlegement
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
7
Profile Deployed JS with Developer Tools and Fiddler

Chapter 6. Efficient Resource Loading - Critical Rendering Path

So far, we have focused on writing high performance code based on efficient algorithms and data structure usage and writing high quality code to ensure not just bug-free code but also code that scales well in every sense, with the growing customer base and usage as well as with the growing team of developers ramping up on the existing code base.

While writing efficient code is pivotal, it is not the only factor determining the overall performance of your application. In this chapter, we will take a close look at resource loading, how and when it takes place, and the strategies to optimize the loading process resulting in an application that truly is high performance!

We will cover the following topics in this chapter: 

  • Resource delivery across the internet: We will explore the networking layer to understand what happens behind the scenes from the point when the client initiates the application load to the point where all the required...