SShortSingh.
Back to feed

Five underused browser APIs that can improve web app performance and privacy

0
·2 views

Modern browsers now include built-in Web APIs that can replace backend services and third-party libraries for many common tasks. The FileReader API allows apps to read local files directly on the user's device, eliminating the need for uploads and improving privacy. URL.createObjectURL() enables in-browser file generation for PDFs, CSVs, and images, reducing server load and speeding up downloads. Web Workers offload heavy computations to background threads, keeping the UI responsive, while the Clipboard API offers a cleaner, modern alternative to the deprecated execCommand() method. The Intersection Observer API efficiently detects when elements enter the viewport, making it a better option than scroll event listeners for lazy loading and animations.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Wiretoast brings unified toast notifications to Laravel via PHP, Alpine, and JavaScript

Wiretoast is a Laravel package that lets developers fire toast notifications from PHP, Alpine.js, or plain JavaScript using a single notify call. It integrates with Livewire through a component macro and dispatches browser events compatible across all three environments. The package supports five notification types, seven display positions, auto-dismiss timers, progress bars, and a grouping option to prevent duplicate stacking. Eleven built-in themes are included, with dark mode support tied to the operating system by default, requiring no external CSS framework. Assets can be bundled via Vite or published traditionally, though developers must avoid loading them through both methods simultaneously.

0
ProgrammingDEV Community ·

Passkeys Hit 93% Sign-In Success Rate as Adoption Surges Globally, FIDO Reports

The FIDO Alliance released its State of Passkeys 2026 report in May, drawing on surveys of 11,000 consumers and 1,400 enterprise decision-makers across ten countries. The report found that passkeys achieve a 93% sign-in success rate compared to 63% for passwords, with average login time falling to 8.5 seconds versus over 30 seconds for password-based methods. Approximately 5 billion passkeys are now active worldwide, and consumer awareness has reached 90%. Despite this progress, many organizations continue to run passwords alongside passkeys as a fallback, and adoption gaps persist largely due to user habit rather than lack of awareness. Major platforms including Google, Apple, and Microsoft already offer passkey login options, though phishing remains the leading cause of account compromise for those yet to make the switch.

0
ProgrammingDEV Community ·

Open-Source Enterprise MCP Gateway Adds OAuth 2.0, RBAC, and Tool Access Controls

A new open-source enterprise MCP (Model Context Protocol) gateway has been introduced with built-in security features aimed at production AI deployments. The solution incorporates OAuth 2.0 authentication to manage identity and authorization across services. Role-Based Access Control (RBAC) is included to restrict user permissions based on defined roles. Tool access control mechanisms further limit which AI tools or functions specific users or systems can invoke. The project was shared by developer Anthony Max on DEV Community on August 5, targeting teams building secure AI and web applications.

0
ProgrammingDEV Community ·

Laravel package generates full CRUD architecture stack with a single Artisan command

A new open-source Laravel package called laravel-make-pattern allows developers to scaffold a complete layered architecture — including Model, Repository, Service, Controller, Form Requests, Resource, Policy, and Feature test — using one Artisan command. The package addresses common pain points such as copy-paste inconsistency and the limitations of Laravel's built-in make:model flag, which does not generate repositories or services. Developers can use optional flags to organise files under Domain-Driven Design folder structures or custom namespaces, with auto-adapted class namespaces requiring no manual edits. Every generation run is logged in an audit history, and individual runs can be rolled back, with modified files flagged rather than silently deleted. All generated stubs are publishable and fully overridable, letting teams enforce their own conventions across every new entity they scaffold.