HubSpot Engineering

Latest posts

Writing lately

HTML5 Resource Performance

There is a little known portion of the HTML5 performance API which has made it into Chrome:

performance.getEntries()

It returns performance information for every resource and request the page has made:

Browser console with one PerformanceResourceTiming entry expanded, listing an icon's startTime, duration and other timings.

Use it to include performance information in your error reports, or log it to your server to better understand what your users are experiencing. You can do that logging with Google Analytics, or stay tuned, HubSpot will be releasing our own open-source metrics collection tool in the next few days.

Newsletter

For Agents

View Markdown

Share

More posts

Moving Mountains: How We Migrated from Enzyme to React Testing Library

How we migrated 76,000 tests from Enzyme to React Testing Library, modernizing our stack and allowing teams to ship changes with more confidence.

A Tech Guide to Web Accessibility: Why It Matters and How to Improve It

Web accessibility is a crucial aspect of building modern websites and applications, which helps ensure that people with disabilities have access to the same information and services as people without disabilities.

Immutability and Its (Potential) Impact on Performance

We recently encountered a performance bug that challenged the use of immutability in our frontend applications.