Category: Web Design – Javascript

Page Lifecycle API

Engineer at Google working on the Web Platform Modern browsers today will sometimes suspend pages or discard them entirely when system resources are constrained. In the future, browsers want to do this proactively, so they consume less power and memory. The Page Lifecycle API, shipping in Chrome 68, provides lifecycle hooks so your pages can safely handle these browser interventions without affecting the user experience….

Ionic 4 beta, the Web Beacon API, and some golden oldies

If you’ve not ventured to the end of an issue of JavaScript Weekly recently, you’ll be missing some of the bonus links or ‘golden oldies’ we’ve been running — this issue has a set of 4 older posts we’ve been seeing getting some fresh love on social media recently, so check those out. Also, if you want to submit articles or libraries for us to…

Build a Basic CRUD App with Node and React

This article was originally published on the Okta developer blog. Thank you for supporting the partners who make SitePoint possible. There are a lot of JavaScript frameworks out there today. It seems like I hear about a new one every month or so. They all have their advantages and are usually there to solve some sort of problem with an existing framework. My favorite to…

WordPress Notifications Made Easy

About The Author Jakub is a WordPress developer and owner of underDEV. He is an author of many free and premium plugins, including Advanced Cron Manager and Notification. Sleeps … More about Jakub… Have you been looking for a way to create a notification system when using WordPress? Meet the ‘Notification’ plugin, an all-in-one solution for any custom WordPress notification system. WordPress doesn’t offer any…

Callbacks. 70 exercises with solutions, explanations, tips, and tricks.

Advance your knowledge of callback-based APIs, callback behaviors and patterns in JavaScript. Learn & practise event loop, timers, async control flows, composition patterns, scoping, error handling, lazy evaluation, and many other relevant topics. Use latest ES6 features and functional helpers to make your code clean, safe, and modern. After this tutorial you’ll be able to twist and bend any callback-based code like a true magician!

Reading and updating query params with URLSearchParams

One of the most common tasks in building a frontend application is to update query parameters. A quick search for query string on npm reveals many options that people have built for tackling this task. But what fewer people seem to be aware of is that there is now an API for working with query parameters baked right into the browser and it’s called URLSearchParams….

Dynamic Waveform Visualizations with wavesurfer.js

Waveform images are an awesome addition to boring audio widgets.  They can be functional as well as aesthetically pleasing, allowing users to navigate audio visually.  I recently found wavesurfer.js, an amazing waveform image utility that uses to Web Audio API to create super customizable waveform visualizations that take only a minute to implement. Start by including wavesurfer.js in…

react-simple-keyboard, an onscreen virtual keyboard for React projects

The easily customisable and responsive on-screen virtual keyboard for React.js projects. Want the vanilla js version? Get simple-keyboard instead! Installation npm install react-simple-keyboard –save Usage import React, {Component} from ‘react’; import Keyboard from ‘react-simple-keyboard’; import ‘simple-keyboard/build/css/index.css’; class App extends Component { onChange = (input) => { console.log(“Input changed”, input); } onKeyPress = (button) => { console.log(“Button pressed”, button); } render(){ return ( <Keyboard onChange={input =>…