# How 17 Lines of Code Improved Shopify.com Loading by 50%

DevFeed: [How 17 Lines of Code Improved Shopify.com Loading by 50%](<https://devfeed.tech/articles/how-17-lines-of-code-improved-shopify-com-loading-by-50-1411.md>)

Original publisher: [Read original article](<https://shopify.engineering/how-17-lines-of-code-improved-shopify-com-loading-by-50>)

Author: Bryson Gilbert

Published: 2017-05-24T20:36:00Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Shopify](<https://devfeed.tech/topics/shopify.md>), [Front end](<https://devfeed.tech/topics/frontend.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Font](<https://devfeed.tech/topics/font.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Website](<https://devfeed.tech/topics/website.md>), [Chrome](<https://devfeed.tech/topics/chrome.md>), [Usability](<https://devfeed.tech/topics/usability.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [css](<https://devfeed.tech/tags/css.md>), [fonts](<https://devfeed.tech/tags/fonts.md>), [front-end](<https://devfeed.tech/tags/front-end.md>), [shopify](<https://devfeed.tech/tags/shopify.md>), [usability](<https://devfeed.tech/tags/usability.md>), [web](<https://devfeed.tech/tags/web.md>)

## AI overview

This article explains how Shopify improved the time needed to display text on Shopify.com by 50%, saving visitors 1.2 seconds with 17 lines of code. The solution used the preload working draft to download font files earlier, reducing Flash of Invisible Text without adding third-party JavaScript dependencies.

## Source excerpt

3 minute read Big improvements don't have to be hard nor take a long time to implement. It took, for example, only 17 lines of code to decrease the time to display text on Shopify.com by 50%. That saved visitors 1.2 seconds: each second matters given that 40% of users expect a website to load within two seconds and those same users will abandon a site if it takes longer than three.