WordPress Developer Ukraine, Kyiv
Store data in the browser with localStorage and sessionStorage

Store data in the browser with localStorage and sessionStorage

Modern web applications frequently need to persist small pieces of data on the client side between page loads or between browser sessions without making a server request. The Web Storage API provides two mechanisms for this: localStorage, which persists data until explicitly cleared, and sessionStorage, which clears automatically when the browser tab is closed. Both…
Debounce user input with vanilla JavaScript

Debounce user input with vanilla JavaScript

Every time a user types in a search field, the browser fires an input event on each keystroke. Without any rate limiting, your JavaScript callback executes on every single key press — which on a fast typist means 5–10 function calls per second. If each call triggers an AJAX request to a search endpoint or…
Simple mail form use AJAX

Simple mail form use AJAX

Simple example use AJAX for HTML form As they say: For developer doesn’t live by WordPress alone.Today, I give an example work to AJAX for building simple landing page without use most popular CMS. In this example we’ll not use back-end validation for fields, but we’ll use requirement attribute for fields. In really life, not…