Skip to Content
Learning TypeScript 2.x - Second Edition
book

Learning TypeScript 2.x - Second Edition

by Remo H. Jansen
April 2018
Beginner content levelBeginner
536 pages
13h 21m
English
Packt Publishing
Content preview from Learning TypeScript 2.x - Second Edition

Webpack

As we already know, when we compile our TypeScript code, the compiler will generate a JavaScript file for each existing TypeScript file. If we run the application in a web browser, these files won't be really useful on their own because the only way to use them would be to create an individual HTML script tag for each one of them.

However, this would be highly inconvenient and inefficient because each script tag will translate into a round trip between the web browser and the server serving the JavaScript files. Using script tags is also slower than using Ajax calls because script tags can prevent the browser from rendering.

Please note that in a modern web browser, we can make some of the script tags asynchronous but it is not always ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering TypeScript - Fourth Edition

Mastering TypeScript - Fourth Edition

Nathan Rozentals
Learning TypeScript

Learning TypeScript

Josh Goldberg
TypeScript for Beginners

TypeScript for Beginners

Bharath Thippireddy

Publisher Resources

ISBN: 9781788391474Supplemental Content