A simple JavaScript stopwatch

User this JavaScript object to help instrument and diagnose your APIs

It's a good idea to have some metrics baked into APIs and other parts of your code. This little JavaScript object lets you easily capture the elapsed time in milliseconds.

javascript

Async and wait

async and wait

javascript

Don't let users lose a page full of data

Protect your users from losing valuable work with a clumsy mouse click

Protect your users from losing valuable work with a clumsy mouse click

javascript

How to post a Laravel form with Ajax

this is the abstract

javascript laravel php ajax

Calling a class method from an event handler

This article shows how to exploit the this-less power of ES6's arrow functions to reference a client-side JavaScript class (or an object) instance method from an event handler assigned in that class.

javascript es6

Declarative DOM element event handlers

A quick way to bind DOM event handlers with JavaScript

This article provides a simple, declarative way to assign multiple DOM element event handlers using custom HTML attributes.

javascript

Creating a new look for rogerpence.com

Put a new face on my old workhorse

There are tons of articles and videos on how to write CSS and JavaScript for new projects. In this project, I'm going to document refreshing a brown-field project with new CSS and other goodies.

javascript laravel css rp-blog