Hands On JavaScript High Performance: Build bare-metal web applications with Node.js and modern web tools
by: Justin Scherer
Print Length 页数: 483 pages
Publisher finelybook 出版社: Packt Publishing – ebooks Account (April 9,2020)
Language 语言: English
ISBN-10: 1838821090
ISBN-13: 9781838821098
Book Description
By finelybook
Explore the advancements in web development like WebAssembly,Service Workers,and Svelte.js for building faster and secure web applications
The current landscape of building web applications usually utilizes some frameworks on both the frontend and backend. But these frameworks hide the underlying engine and the APIs that are at a system level layer of the web application.
This book helps you explore the vanilla JavaScript and its features in building faster and secure web apps. We’ll start with understanding the web frontend,current landscape of the web,and the latest version of ES and JavaScript. You’ll dive deep into working with Node.js and learning how web apps can be built without a framework. The book consists of three hands on examples helping you to build a static server with Node.js,exploring Svelte.js with JavaScript,and experiencing GPU acceleration using GLSL and WebGL. Each chapter houses modern techniques like DOM manipulations,v8 engine optimization,etc to help you advance in your understanding of web. Finally,we dive into advanced topics such as WebAssembly and GPU programming and how you can harness their capabilities to speed up your web apps dramatically.
By the end of this book,you’ll gain an appreciation for how the JavaScript landscape has evolved,not just for the frontend but also for the backend. On top of this,you will have quite a few new tools at your disposal to solve the common web problems with modern web tools and techniques.
What you will learn
Deep dive into vanilla JavaScript for optimizing DOM,classes,modules and Querying with JQuery
Fully understand Immutable vs Mutable code and how to use them for building faster web
Get a high level understanding of Svelte.js and build a complete real time ToDo app with it
Build apps to work offline using Service Workers and caching calls once the user is back online
Write C++ native codes and call the WebAssembly module with JavaScript to run them on browser
Learn GPU acceleration with JavaScript using WebGL and GLSL programming
Contents
Preface
Chapter 1: Tools for High Performance on the Web
Chapter 2: Immutability versus Mutability-The Balance between Safety and Speed
Chapter 3: Vanilla Land-Looking at the Modern Web
Chapter 4: Practical Example-A Look at Svelte and Being Vanilla
Chapter 5: Switching Contexts-No DOM,Different Vanilla
Chapter 6: Message Passing-Learning about the Different Types
Chapter 7: Streams-Understanding Streams and Non-Blocking I/O
Chapter 8: Data Formats -Looking at Different Data Types Other Than JSON
Chapter 9: Practical Example-Building a Static Server
Chapter 10: Workers-Learning about Dedicated and Shared Workers
Chapter 11: Service Workers-Caching and Making Things Faster
Chapter 12: Building and Deploying a Full Web Application
Chapter 13: WebAssembly -A Brief Look into Native Code on the Web
Other Books You May Enjoy
Index