Название: Beginning Shadow DOM API: Get Up and Running with Shadow DOM for Web Applications Автор: Alex Libby Издательство: Apress Год: 2024 Страниц: 145 Язык: английский Формат: pdf, azw3, epub, mobi Размер: 10.1 MB
Leverage the power of the Shadow DOM API to quickly create encapsulated code that keeps markup and styles separate within websites. Using little more than a text editor or free software, this project-oriented book simplifies the process of creating and manipulating the Shadow DOM API code in the browser for websites or online applications.
You'll use a starting toolset to develop future projects, incorporate them into an existing workflow, and allow them to simplify complex components. This makes them more robust and less brittle when used in websites. You'll also see that websites do not have to convert the whole work process immediately; you can incorporate as little or as much as needed of the API, and build on this as your skills develop.
We live in an age where speed and simplicity are of the essence. Beginning Shadow DOM API shows you the perfect way to create encapsulated code that can run in multiple frameworks with a minimum of fuss.
This mini project-oriented book first examines what the Shadow DOM API is all about and the benefits of using it and then touches on where it fits into the landscape as a browser API. We’ll examine the various parts of the API and understand why it may not be necessary to use a heavyweight tool such as React when the emphasis is on speed and efficiency in any project.
Throughout this book, I’ll take you on a journey through using the API, exploring how easy it is to create simple examples that we can extend and make more dynamic with the minimum of fuss. We’ll use all of the techniques we gain from exploring the API, to make a more complex component – I’ll show you the process from start to finish, including examples of how we can see it in action. It may not be production-ready from the get-go, but it will give us a good grounding to develop it into something more complex at a later date. We’ll even take a look at using the API in noncomponent code and explore how tools such as React can use the API too – should we still need to use them!
Beginning Shadow DOM API uses nothing more than standard javascript, CSS, and HTML, three of the most powerful tools available for developers: you can enhance, extend, and configure your components as requirements dictate. With this API, the art of possible is only limited by the extent of your imagination and the power of javascript, HTML, and Node.js.
You You'll Learn: Implement the Shadow DOM API in a project Gain an appreciation of pointers using the Shadow DOM API Manage issues and security when using the Shadow DOM API Make components and code more reusable, while maintaining desired styling
Who This Book Is For: Website developers who are already familiar with frameworks that Shadow DOM API, but do not want to have to use the heavy weight of a full-sized framework to add features such as DOM encapsulation to their code.
Скачать Beginning Shadow DOM API: Get Up and Running with Shadow DOM for Web Applications
|