---
title: "Brad Preston (@bpreston5393) | Hashnode"
description: "Forever lost in localhost. Read the latest articles by Brad Preston on Hashnode."
url: "https://hashnode.com/@bpreston5393"
---

@bpreston5393

# Brad Preston

@bpreston5393 · Joined April 2023

Forever lost in localhost

### [Type Guards and Type Narrowing](https://bradpreston.hashnode.dev/type-guards-and-type-narrowing?utm_source=hashnode&utm_medium=feed)

What they are and how to use them

6 min read · [bradpreston.hashnode.dev](https://bradpreston.hashnode.dev/type-guards-and-type-narrowing?utm_source=hashnode&utm_medium=feed)

[Apr 12](https://hashnode.com/posts/type-guards-and-type-narrowing/69dbaf7daadf1107e2f05d5b)

### [Hoisting in JavaScript](https://bradpreston.hashnode.dev/hoisting-in-javascript?utm_source=hashnode&utm_medium=feed)

Maybe you’ve heard of hoisting or maybe this is a new term in your learning journey. Either way, understanding how hoisting works will help you understand how your code works. What the heck does hoisting even mean? By definition, when something is “h...

4 min read · [bradpreston.hashnode.dev](https://bradpreston.hashnode.dev/hoisting-in-javascript?utm_source=hashnode&utm_medium=feed)

[Feb 13](https://hashnode.com/posts/hoisting-in-javascript/698fa5fa8d382639ce22f02d)

### [Throttling function calls in JavaScript](https://bradpreston.hashnode.dev/throttling-function-calls-in-javascript?utm_source=hashnode&utm_medium=feed)

You’re at a water park in line for your favorite water slide. Only one person is allowed to go down the slide every 15 seconds. This is implemented for safety. If every person when right after the other, we would have backups in the slide or injuries...

4 min read · [bradpreston.hashnode.dev](https://bradpreston.hashnode.dev/throttling-function-calls-in-javascript?utm_source=hashnode&utm_medium=feed)

[Mar 2, 2025](https://hashnode.com/posts/throttling-function-calls-in-javascript/67c4d430a5e4d11917f5c463)

### [Preventing CLS with Dynamic Images](https://bradpreston.hashnode.dev/preventing-cls-with-dynamic-images?utm_source=hashnode&utm_medium=feed)

When adding images to our websites, it’s crucial to prevent the layout from shifting while the image loads. Cumulative Layout Shift (CLS) can be described as unexpected movement while the page content is loading. For example, you go to click on a but...

3 min read · [bradpreston.hashnode.dev](https://bradpreston.hashnode.dev/preventing-cls-with-dynamic-images?utm_source=hashnode&utm_medium=feed)

[Feb 26, 2025](https://hashnode.com/posts/preventing-cls-with-dynamic-images/67be7bce26ec65a77ad0a09e)

### [Handling events on multiple items in JavaScript](https://bradpreston.hashnode.dev/handling-events-on-multiple-items-in-javascript?utm_source=hashnode&utm_medium=feed)

Using closest on a list of elements

3 min read · [bradpreston.hashnode.dev](https://bradpreston.hashnode.dev/handling-events-on-multiple-items-in-javascript?utm_source=hashnode&utm_medium=feed)

[Feb 16, 2025](https://hashnode.com/posts/handling-events-on-multiple-items-in-javascript/67b271f5980e8e26f61b6aec)
