November 15, 2023

CloudFlare and Google Fonts, considerations on Web Performance.

Overcome the limitations of Google Fonts and additional network roundtrips with ROFL. Response Overseer for FL.

Cloud Flare Down

Cloudflare, eager to speed up the loading of formatted text in browsers, has challenged Google with a new ROFL web font delivery service.

The company, which specializes in content delivery networks and more, has two problems with Google Fonts.

According to Cloudflare, Google Fonts uses a cascading style sheet (CSS) located at fonts.googleapis.com, but stores the font files at fonts.gstatic.com. "This separation results in a minimum of four round trips to third-party servers for each resource request" wrote Mat Bullock, product manager at Cloudflare, and William Woodhead, manager of software engineering.

The original post can be found here: Cloudflare Fonts: enhancing website font privacy and speed

These trips include the DNS lookup, socket connection establishment, TLS negotiation (for HTTPS), and the last trip to actually request the resource. As a result, getting a font from Google's servers to your browser requires eight round trips.

All this back and forth translates to a 150ms increase in page load time for a WordPress site, they wrote.

Their second problem is privacy. While the post acknowledges that Google does not collect information about the use of fonts for advertising or to set cookies, the two authors note that font collection interactions with Google could potentially collect IP addresses, user agents, referring page details and measure the frequency with which each IP makes requests to Google.

"Any time you can avoid sharing an end user's personal data unnecessarily is a win for privacy" they wrote.

Not surprisingly, Cloudflare has addressed these issues.

The company solved the chattiness problem with an approach that allows it to transmit fonts over the same HTTP/2 or HTTP/3 connection used to serve other page resources. It also eliminated the CSS prompt.

CloudFlare ROFL

"To achieve both redirection of font requests and removal of the CSS requirement, we rewrite the HTML as it passes through Cloudflare's global network. The CSS response is embedded and font URL transformations are performed within the embedded CSS” explains the post.

This approach is made possible by a technology called “ROFL” – Response Overseer for FL.

FL stands for Front Line – part of a framework called Cf-html that Cloudflare uses to parse HTML. As detailed in a February 2023 post, Cf-html had security challenges that led Cloudflare to rework it, using Rust.

In the latest post, Bullock and Woodhead state: “ROFL pioneered the development of Cloudflare Fonts.”

The new service will be available online in October. Unfortunately, Cloudflare's post doesn't specify a date, nor does it mention the cost.

Do you have doubts? Don't know where to start? Contact us!

We have all the answers to your questions to help you make the right choice.

Chat with us

Chat directly with our presales support.

0256569681

Contact us by phone during office hours 9:30 - 19:30

Contact us online

Open a request directly in the contact area.

INFORMATION

Managed Server Srl is a leading Italian player in providing advanced GNU/Linux system solutions oriented towards high performance. With a low-cost and predictable subscription model, we ensure that our customers have access to advanced technologies in hosting, dedicated servers and cloud services. In addition to this, we offer systems consultancy on Linux systems and specialized maintenance in DBMS, IT Security, Cloud and much more. We stand out for our expertise in hosting leading Open Source CMS such as WordPress, WooCommerce, Drupal, Prestashop, Joomla, OpenCart and Magento, supported by a high-level support and consultancy service suitable for Public Administration, SMEs and any size.

Red Hat, Inc. owns the rights to Red Hat®, RHEL®, RedHat Linux®, and CentOS®; AlmaLinux™ is a trademark of AlmaLinux OS Foundation; Rocky Linux® is a registered trademark of the Rocky Linux Foundation; SUSE® is a registered trademark of SUSE LLC; Canonical Ltd. owns the rights to Ubuntu®; Software in the Public Interest, Inc. holds the rights to Debian®; Linus Torvalds holds the rights to Linux®; FreeBSD® is a registered trademark of The FreeBSD Foundation; NetBSD® is a registered trademark of The NetBSD Foundation; OpenBSD® is a registered trademark of Theo de Raadt. Oracle Corporation owns the rights to Oracle®, MySQL®, and MyRocks®; Percona® is a registered trademark of Percona LLC; MariaDB® is a registered trademark of MariaDB Corporation Ab; REDIS® is a registered trademark of Redis Labs Ltd. F5 Networks, Inc. owns the rights to NGINX® and NGINX Plus®; Varnish® is a registered trademark of Varnish Software AB. Adobe Inc. holds the rights to Magento®; PrestaShop® is a registered trademark of PrestaShop SA; OpenCart® is a registered trademark of OpenCart Limited. Automattic Inc. owns the rights to WordPress®, WooCommerce®, and JetPack®; Open Source Matters, Inc. owns the rights to Joomla®; Dries Buytaert holds the rights to Drupal®. Amazon Web Services, Inc. holds the rights to AWS®; Google LLC holds the rights to Google Cloud™ and Chrome™; Microsoft Corporation holds the rights to Microsoft®, Azure®, and Internet Explorer®; Mozilla Foundation owns the rights to Firefox®. Apache® is a registered trademark of The Apache Software Foundation; PHP® is a registered trademark of the PHP Group. CloudFlare® is a registered trademark of Cloudflare, Inc.; NETSCOUT® is a registered trademark of NETSCOUT Systems Inc.; ElasticSearch®, LogStash®, and Kibana® are registered trademarks of Elastic NV Hetzner Online GmbH owns the rights to Hetzner®; OVHcloud is a registered trademark of OVH Groupe SAS; cPanel®, LLC owns the rights to cPanel®; Plesk® is a registered trademark of Plesk International GmbH; Facebook, Inc. owns the rights to Facebook®. This site is not affiliated, sponsored or otherwise associated with any of the entities mentioned above and does not represent any of these entities in any way. All rights to the brands and product names mentioned are the property of their respective copyright holders. Any other trademarks mentioned belong to their registrants. MANAGED SERVER® is a trademark registered at European level by MANAGED SERVER SRL, Via Enzo Ferrari, 9, 62012 Civitanova Marche (MC), Italy.

JUST A MOMENT !

Would you like to see how your WooCommerce runs on our systems without having to migrate anything? 

Enter the address of your WooCommerce site and you will get a navigable demonstration, without having to do absolutely anything and completely free.

No thanks, my customers prefer the slow site.
Back to top