Blog Feed Post

Using a CDN and Front End Optimization to Boost Website Performance

It’s hardly news that modern business is taking place primarily on the Internet. Regardless of its size, every business will lose some of its power if it doesn’t have an online presence.

The Internet space is large enough to accommodate countless businesses and ventures, but its vast size is not without its obstacles. The challenge here is in gaining a prominent presence for your business without getting lost in the digital crowd; and the only way to ensure this is with superior website performance and a rich and seamless user experience. When you consider that up to 40% of users will abandon a website that fails to load within 2 seconds, optimizing your website becomes not just necessary but imperative.

The image below represents how a browser works:

http://blog.catchpoint.com/wp-content/uploads/2017/09/feo1-300x186.png 300w" sizes="(max-width: 600px) 100vw, 600px" />

In general terms, a browser sends a request to the server and renders the requested content once the server responds with the data. The sending and receiving part of the process constitute the network component, and the content rendering is the front-end component. Optimizing both these components is essential to deliver an enhanced website and this is where content delivery network and front end optimization (FEO) techniques come into play. The network component can be optimized using CDN while FEO techniques optimize the content.

Today, websites are nothing like what they used to be a few years ago; CSS, JS, and HD images are common in today’s sites and help deliver highly interactive and customized content specific to a user’s browsing habits and geographical location. It’s crucial that such content is delivered as fast as possible – wasted seconds can cost companies in revenue and customer loyalty. CDNs use their highly-distributed platform of servers and advanced infrastructure to not only ensure smooth operation between a content server and the end users, but also to bring the content closer to the user, hence speeding up the process of serving the content. The data below shows the variation in performance when loading contents like images, CSS, and scripts from a CDN vs origin servers.

http://blog.catchpoint.com/wp-content/uploads/2017/09/feo2-300x151.jpg 300w" sizes="(max-width: 537px) 100vw, 537px" /> The graph above shows the differences in load time when content is served from a CDN and an origin server. Images and CSS load 2x faster than CDN networks; the content takes around 200ms-1800ms when served from CDN, while it takes 800ms-4800ms to be served from origin servers.

Small, medium, and large content providers have come to rely on CDN for a seamless web experience for their end users because of its ubiquitous nature that mitigates the challenges encountered when delivering content over the internet.

A lot has been said and written about what a CDN is and why it’s important. You can read more about it here.

Front End Optimization Techniques

Front end optimization (FEO) is a service that aims at providing a better user experience with your web content. Also known as content optimization, FEO techniques fine-tune the content on your website by loading it more quickly and making it more browser-friendly.

FEO also compresses file size and minimizes the number of requests required to load the content on the page.

Consider the graph below; it displays the render start time of a website with and without FEO.

http://blog.catchpoint.com/wp-content/uploads/2017/09/feo3-300x218.png 300w" sizes="(max-width: 473px) 100vw, 473px" />

As you can see, the render start time improved by 1.5 seconds with the use of FEO techniques.

Benefits of Implementing FEO

1. Compressed files: A website’s content will become lighter and more manageable when the files are compressed. Compressing the files will reduce the total downloaded bytes (page size), which not only saves the bandwidth but also speeds up the download time to load the page faster.

Let’s look at how compression promotes faster page load times. We ran a few tests on a website with file compression both enabled and disabled. After implementing compression, the page size was reduced by 0.5 MB.

http://blog.catchpoint.com/wp-content/uploads/2017/09/feo7-300x78.jpg 300w" sizes="(max-width: 700px) 100vw, 700px" />

Let’s visualize the difference in file size at the request level using waterfall graphs. A difference of 23 – 33% is observed in the file size, which in turn improved the response time of these requests and eventually contributed to a faster download time for the whole page.

http://blog.catchpoint.com/wp-content/uploads/2017/09/feo4-300x104.jpg 300w, http://blog.catchpoint.com/wp-content/uploads/2017/09/feo4-768x267.jpg 768w" sizes="(max-width: 820px) 100vw, 820px" />

Note: We’ve highlighted the identical requests in the above waterfall graphs using unique colors to make it easy to spot the difference in file size and response time.

2. Enabled prefetching: A website visitor’s browsing experience can be greatly improved when prefetching is enabled. Prefetching bundles images, JavaScript, CSS, URL, etc. together so that the visitor can easily navigate between pages while saving on load time.

Fortunately, it is quite easy to enable prefetching. Just add any of these tags within your website’s HTML to enable it – rel=”prefetch”, rel=”dns-prefetch”, or rel=”prerender”.

You can read more about different types of prefetching and the impact it has here.

3. Reduces external HTTP requests: It is important that you examine your website to make use of a minimalist outlook. Doing so will help us to eliminate unnecessary features that may not be of any help to a user such as unnecessary JavaScript’s, images, plugins, and excessive CSS.

http://blog.catchpoint.com/wp-content/uploads/2017/09/feo5-300x30.png 300w, http://blog.catchpoint.com/wp-content/uploads/2017/09/feo5-768x77.png 768w, http://blog.catchpoint.com/wp-content/uploads/2017/09/feo5-1024x103.png 1024w" sizes="(max-width: 1144px) 100vw, 1144px" />

A larger number of hosts on the page will lead to higher number of connections. These TCP connections act as a performance overhead which contributes to slower webpage response. Also, you should note that each HTTP request is a unique round trip; the more round trips, the higher the page response time. While some of them may happen in parallel, it can still be a setback to performance.

The screenshot above displays the data for a popular website. The site has only three hosts serving 44 requests on the page, due to which the entire page loaded in less than 2 seconds (webpage response: 1738ms) and provided a better user experience.

4.  HTML document clean-up: Hypertext Markup Language (HTML) is the building block of most websites and provides a structure to the page including headings, lists, subheadings and other text-organizing features. Web crawlers, which are used by Google to read website pages, make use of HTML when performing web searches. FEO removes unwanted whitespaces and minifies the HTML making it easier to parse and render.

CDN or FEO: Which is better?

Recently, we did a CDN performance study for one of the market’s leading Internet security software provider. The study highlighted (as seen below) the performance of the website in three different scenarios – without CDN and FEO, with CDN and FEO and lastly, with CDN and without FEO.

http://blog.catchpoint.com/wp-content/uploads/2017/09/feo6-300x277.png 300w" sizes="(max-width: 473px) 100vw, 473px" />

We can see that the there is a great improvement on the site’s page render time (almost 5 seconds faster) when both CDN and FEO techniques are implemented.

So, our answer to the question regarding CDN or FEO: both. CDNs help the FEO processes by streamlining the time needed to perform the task of FEO. For instance, a CDN offers auto minification and auto file compression features that save time, which would otherwise have been spent on manually processing each individual website resource.

Making use of only a CDN without FEO techniques does not necessarily guarantee the best end-user experience for your website. Have you clicked on an image on a website and felt it took forever to load? That is what happens when FEO techniques are not implemented. When files and images are compressed, it enables CDN to work more effectively.

CDNs bring the user closer to resources by handling the performance middle mile. This shortens the number of trips a server makes and results in a faster loading page. FEO techniques, on the other hand, handle the front-end aspect of the website so that the pages run smoothly on a user’s browser.

Simplifying it further, a CDN helps to fetch and load content faster while FEO techniques ensure that the contents have been packaged in such a way that it is easier and lighter for the website.

There are possibilities where we may not have sufficient resources at your end to implement FEO techniques. The good news is that there are many CDN companies currently in the market that offer advanced FEO services which you can leverage on your website. This will save both time and extra cost.

In conclusion, combining CDN and FEO techniques will enable pages to load up to 2.5 times faster, and slash the total payload by a greater extent. The result hence assures the best user experience.

The post Using a CDN and Front End Optimization to Boost Website Performance appeared first on Catchpoint's Blog - Web Performance Monitoring.

Read the original blog entry...

More Stories By Mehdi Daoudi

Catchpoint radically transforms the way businesses manage, monitor, and test the performance of online applications. Truly understand and improve user experience with clear visibility into complex, distributed online systems.

Founded in 2008 by four DoubleClick / Google executives with a passion for speed, reliability and overall better online experiences, Catchpoint has now become the most innovative provider of web performance testing and monitoring solutions. We are a team with expertise in designing, building, operating, scaling and monitoring highly transactional Internet services used by thousands of companies and impacting the experience of millions of users. Catchpoint is funded by top-tier venture capital firm, Battery Ventures, which has invested in category leaders such as Akamai, Omniture (Adobe Systems), Optimizely, Tealium, BazaarVoice, Marketo and many more.

Latest Stories
Poor data quality and analytics drive down business value. In fact, Gartner estimated that the average financial impact of poor data quality on organizations is $9.7 million per year. But bad data is much more than a cost center. By eroding trust in information, analytics and the business decisions based on these, it is a serious impediment to digital transformation.
Digital Transformation: Preparing Cloud & IoT Security for the Age of Artificial Intelligence. As automation and artificial intelligence (AI) power solution development and delivery, many businesses need to build backend cloud capabilities. Well-poised organizations, marketing smart devices with AI and BlockChain capabilities prepare to refine compliance and regulatory capabilities in 2018. Volumes of health, financial, technical and privacy data, along with tightening compliance requirements by...
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
"NetApp is known as a data management leader but we do a lot more than just data management on-prem with the data centers of our customers. We're also big in the hybrid cloud," explained Wes Talbert, Principal Architect at NetApp, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"Since we launched LinuxONE we learned a lot from our customers. More than anything what they responded to were some very unique security capabilities that we have," explained Mark Figley, Director of LinuxONE Offerings at IBM, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
I love the beginning of the year. It is always enjoyable to see people's predictions for trends in the coming year. Publications like Fortune, CNN Money, Washington Post and the Atlantic speculate about what gadgets and technologies are going to take off in popularity this year, psychics predict which celebrities will have babies and fall in love, and I start to think about trends like DevOps and where the software delivery industry is headed next.CollabNet, Eric Robertson, predicted.
DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City and will bring together Cloud Computing, FinTech and Blockchain, Digital Transformation, Big Data, Internet of Things, DevOps, AI, Machine Learning and WebRTC to one location.
DXWorldEXPO LLC announced today that "Miami Blockchain Event by FinTechEXPO" has announced that its Call for Papers is now open. The two-day event will present 20 top Blockchain experts. All speaking inquiries which covers the following information can be submitted by email to [email protected] Financial enterprises in New York City, London, Singapore, and other world financial capitals are embracing a new generation of smart, automated FinTech that eliminates many cumbersome, slow, and expe...
Evan Kirstel is an internationally recognized thought leader and social media influencer in IoT (#1 in 2017), Cloud, Data Security (2016), Health Tech (#9 in 2017), Digital Health (#6 in 2016), B2B Marketing (#5 in 2015), AI, Smart Home, Digital (2017), IIoT (#1 in 2017) and Telecom/Wireless/5G. His connections are a "Who's Who" in these technologies, He is in the top 10 most mentioned/re-tweeted by CMOs and CIOs (2016) and have been recently named 5th most influential B2B marketeer in the US. H...
DXWorldEXPO | CloudEXPO are the world's most influential, independent events where Cloud Computing was coined and where technology buyers and vendors meet to experience and discuss the big picture of Digital Transformation and all of the strategies, tactics, and tools they need to realize their goals. Sponsors of DXWorldEXPO | CloudEXPO benefit from unmatched branding, profile building and lead generation opportunities.
The best way to leverage your Cloud Expo presence as a sponsor and exhibitor is to plan your news announcements around our events. The press covering Cloud Expo and @ThingsExpo will have access to these releases and will amplify your news announcements. More than two dozen Cloud companies either set deals at our shows or have announced their mergers and acquisitions at Cloud Expo. Product announcements during our show provide your company with the most reach through our targeted audiences.
DevOpsSummit New York 2018, colocated with CloudEXPO | DXWorldEXPO New York 2018 will be held November 11-13, 2018, in New York City. Digital Transformation (DX) is a major focus with the introduction of DXWorldEXPO within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive over the long term. A total of 88% of Fortune 500 companies from a generation ago are now out of bus...
With 10 simultaneous tracks, keynotes, general sessions and targeted breakout classes, @CloudEXPO and DXWorldEXPO are two of the most important technology events of the year. Since its launch over eight years ago, @CloudEXPO and DXWorldEXPO have presented a rock star faculty as well as showcased hundreds of sponsors and exhibitors! In this blog post, we provide 7 tips on how, as part of our world-class faculty, you can deliver one of the most popular sessions at our events. But before reading...
Modern software design has fundamentally changed how we manage applications, causing many to turn to containers as the new virtual machine for resource management. As container adoption grows beyond stateless applications to stateful workloads, the need for persistent storage is foundational - something customers routinely cite as a top pain point. In his session at @DevOpsSummit at 21st Cloud Expo, Bill Borsari, Head of Systems Engineering at Datera, explored how organizations can reap the bene...
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...