SHARE

EDUCATION

text-transform: An Unlikely Source of Jank

Here at Quantic, we take a hard look at the performance of our applications so that our users don’t have to experience any troublesome hiccups (or “jank”) that might otherwise sour a sweet learning experience.

While “performance” can cover a wide array of metrics, we tend to be extremely critical of browser overhead (script execution, rendering layout, and painting). While others have covered optimization of these metrics in great detail, we came across an unlikely jank-vector that we thought was worth mentioning.

When analyzing CSS performance in relation to browser lifecycle, there are a few notorious styles (eg: border-radius, box-shadow, transform, backface-visibility, etc) that tend to slow down frame rate. Some of these are obvious as they dramatically influence the rendering process or add additional calculations for stylistic ooomph. One might be extremely likely to overlook the rather mundane text-transform while focusing on that list, though.

We had several elements each containing a finite number of additional elements that all were performing CSS-dictated uppercasing on their text content. Now, this might not be a significantly intensive operation in itself, but combined with some excessively spastic scrolling, it degraded the user experience somewhat significantly. After we updated the content to be rendered in uppercase without the need for CSS text transformation, the improvement was obvious.

Here’s how things looked on a common mobile platform, prior to the change (FPS is the key metric, with 60FPS as an ideal target):

with CSS text transform

As you can see, we were barely hitting the 30FPS threshold and often even missing that window. Here’s what we observed after we removed the relevant text-transform styles:

no CSS text transform

As you can see, we’re now closer to consistently hitting that golden 60FPS benchmark! Granted, we were probably abusing a CSS style that was intended for narrower application, and the DOM of this particular page meant that there were a lot of them, so your mileage may certainly vary. However, this might help serve others in the war against jank!


SHARE

Trending now

Women in Business Analytics: Leading in the Age of AI | The Quantic Blog (1)
DATA ANALYTICSFebruary 28, 2025
Women in Business Analytics: Leading in the Age of AI

The rise of artificial intelligence (AI) is reshaping industries, leading to an unprecedented demand for skilled professionals. However, women make up only 29% of the AI workforce, leaving a staggering 42% gender gap compared to their male counterparts. This disparity highlights a pressing need to empower women in data-driven roles. Their unique perspectives can foster …

msba vs mba
MBAFebruary 18, 2025
MSBA vs MBA – The Difference Explained. Which One is Better? 

Many young professionals find themselves at a loss for how to best advance their careers. After all, there are so many master’s programs out there that it’s easy to be trapped in analysis paralysis. This is especially true when you find yourself torn between a Master of Science in Business Analytics (MSBA) vs MBA, two …

DATA ANALYTICSFebruary 10, 2025
How a Master’s in Business Analytics Transforms Decision-Making

The digital age has ushered in an era of knowledge abundance, fundamentally reshaping how businesses operate and create value. A Master’s in Business Analytics equips professionals with the tools to navigate this transformation, leveraging artificial intelligence (AI) to access and analyze vast amounts of data effectively. This shift challenges traditional notions of productivity and competitive …

Ready to jump start your career?

Start learning with Quantic.