Find browser and screen resolution quickly

September 24, 2024 at 1:36 pm | Javascript, Programming, web.

I created a tool to help me quickly get someones screen resolution and browser size. This makes it super easy to get mobile sizes that you may not find inside Chrome Inspector list. I can’t tell you how many times this little test has helped me. Here are just a couple sizes that I found… Read more »

Create a .well-known file in Hubspot

August 28, 2024 at 11:35 am | Design, Programming, web.

Certain processes have you create a .well-known folder and file inside at the root of your site. These can be anything from security protocols to verification services. This can be a problem with hosting services that do not allow the creation of the folder or that have site media stored at another URL location such… Read more »

Better WordPress search with two quick changes

August 6, 2024 at 9:32 am | Programming, web, Wordpress.

WordPress search is a nice addition to a site and can help your users find the content their looking for rather than hunt through menus or landing pages. One problem. WordPress search relevance isn’t that great. There are other search plugin addons that you can install like Relevanssi, which can help things right out of… Read more »

Expand all Asana comments and threads in a task

May 18, 2023 at 12:56 pm | Programming, web.

You can use the following piece of Javascript as a bookmark in your browser to expand all the comments and threads in an Asana task. This is really helpful when you have long threads with lots of comments and you are unable to see all of them because Asana hides them by default.

Fixing preview or unfurl in Slack

February 19, 2022 at 1:48 pm | Programming, web.

Sometimes you will find that certain links in slack do not preview or unfurl inside of a channel or conversation. When you have ruled out all of the basic reasons set forth in the Slack share links documentation setup here here are a couple more that you can look into.

Load the fonts first for page speed

November 21, 2021 at 1:14 pm | blabbing, Design, Programming, web.

To increase page speed for blocking font rendering and to reduce the font rendering time when the page loads on your site, add your fonts as a preload at the top of your page. This may seem counter intuitive to load an asset ahead of time for page speed, but it makes sense in two… Read more »

Triggering javascript on change programmatically and have it bubble

October 28, 2021 at 10:01 am | Programming, web.

A problem I ran into recently is that updating an input value is a form using javascript or jQuery is fairly easy but sometimes this programmatic update of the field does not trigger an onChange event that another piece of code is listening for. Adding a dispatchEvent on the selector can accomplish this.

Working with Hubspot forms onFormSubmit

October 13, 2021 at 11:02 am | Programming, web.

Getting values from the hubspot form in it’s onFormSubmit handler can be pretty tricky so here is a quick tip. Add the onFormSubmit closure function to the hbspt.forms.create script and then use .find() to get the value of individual form elements that you need. At that point you can use them to pass to tracking… Read more »