JavaScript
Browse 7 articles in this topic. View all topics.
- How Much JavaScript Does a Website Really Need?
Start with the page's job, use the browser's native features, and add JavaScript only where its behaviour justifies the cost.
- Building a modal with HTML dialog
Build modal windows from the native HTML dialog element, including backdrops, forms, Escape handling, and practical examples.
- Native HTML and CSS Features That Replaced JavaScript
Replace common JavaScript components with native HTML and CSS, from disclosures and dialogs to container queries and scroll effects.
- How Third-Party Scripts Slow Down Websites
See how analytics, ads, chat widgets, embeds, and other third-party scripts affect loading, privacy, and reliability.
- Start TypeScript With the Code You Already Have
A practical introduction to TypeScript types, narrowing, functions, API boundaries, and a small project setup.
- Social sharing buttons without JavaScript
Add lightweight sharing links for social networks and email without loading third-party JavaScript.
- Making a device vibrate from a web page
Trigger a short vibration or vibration pattern from JavaScript with the Vibration API.