In light of the recent COVID-19 pandemic - OPTASY would like to offer DRUPAL website support for any Health Care, Government, Education and Non-Profit Organization(s) with critical crisis communication websites or organizations directly providing relief. Stay Safe and Stay Well.

How to Speed Up Your Website: 10 Most Effective Optimization Techniques

How to Speed Up Your Website: 10 Most Effective Optimization Techniques

by Adrian Ababei on Nov 30 2016
Websites sure have changed dramatically since the rise of the internet, wouldn't you agree? When competition for winning User's attention with gorgeous design and high quality, interactive content intermingling with online marketing strategies/tools has become so fierce, what do you do?
 
How do you resist the temptation of  overloading your website so much that it will end in annoying your visitors since it will load all its "awesomeness" way too slow for their high speed lifestyles?
 
Here is where we come in, lending you (or just reminding you of, since we're sure that many of the following "tips and tricks" on optimizing your website for gaining some more speed are no news for you) some helpful advice on how to regain control over the speed of you site (and to gain the amounts of traffic you've been fantasizing about and the conversion rates that you've dared hoping for and not just a beautifully looking website for your (and your friends' maybe) own pride and joy only.

 

1. Is it Really Worth the Effort?

 
First things first! Before you even put together your action plan you should realize and accept that optimizing your site is not just about speeding it up: it's also about the UX and SEO benefits that it comes with.
 
It's about improving your users' experience while on your website and thus turning them from first-time visitors into loyal visitors (and from visitors into to customers). 
 
Just think about it: the quicker content on your site loads, the less bandwidth your visitors use (it will reduce your bandwidth costs).
 

2. Aim for High Speed, Not Size

 
Aim for the (apparently) impossible: while your site gains (inevitably) more weight, strive to keep it optimized and efficient!
 
Constantly monitor its speed, while keeping up with the trends (which are building websites with rich-content pages and outstanding imagery, which risk to weight them down).

 

3. Go for Modular Code

 
You might think now: "But, wait a minute: modular code will just add even more bloat to my website!"
 
It's true, it will "load" it with more options for you to choose from, BUT think about modular code this way: you get to put together multiple common pieces of your code using less. Take combining two CSS classes, for instance: module coding gives you the same results with less "resources" that could bloat you website.
 
And that, my friend, it how efficiency looks like! 

 

4. Draw A Line Between Development and Production Level Code Bases

 
Handle the two environments differently! In short: realize the difference between compressing the code and compressing the images on your website.
 
  1.  the code's compression depends a great deal on the language you're using (go for Google’s htmlcompressor, for YUI Compressor for CSS, or any other method that suits you)

     
  2. the images' compression could just as well mean using Photoshop's "Save for the Web" tool. Keep diving into the "sea of tools and best practices for image formats, compression algorithms, quality monitoring and so on” available online.

 

5. Keep It Super Neat

 
It's a common sense practice not to "abuse" your server, don't you think? 
 
Just imagine it "exhausted", trying to efficiently handle all the messages you send it: web fonts, JavaScript, CSS style sheets. If you "empathize" (and you should) with it, then start applying these tips for easing all its hard work:
 
  1. load stylesheets at the top and scripts at the bottom

     
  2. bundle up your images, nice and neat, so that it should be easier for your site to load them

     

6. Go From Poorly Written To Readable Code

 
Besides "heavy", large images, un-optimized code is another major factor that slows down your website. So, as regards best practices for writing you code (for reaching top speed), we have 2 tips for you:

 
  1.  if possible, call JavaScript last (by the time JavaScript starts slowing everythinf down, your site will have already displayed the markup, processed the HTTP requests, the CSS. etc.)

     
  2.  write identifiable, short CSS selectors: they will be far more speedy in doing "accomplishing their mission"

     

7. Optimize Your Fonts

 
Remember that we've talked about beautiful typography being forecast as one of the UI trends in 2017? Well, looks are not enough when you're approaching your site from its efficiently/speed perspective.
 
You need both beautiful and optimized fonts if you want to keep your site's performance high, all while enticing your visitors with gorgeous design. Here are a few tips for optimizing your fonts:
 
  • compress, compress, then compress your fonts some more (use FontLoading Api for instance)

     
  • juggle with maximum 2 fonts

     
  • go for font-face (whenever you need to access external font resources)

     
  • select only the variants you need (no need to overload you website with all the available weights and styles)

     
  • ease your site's job: go for  WOFF2, WOFF, TTF, and EOF formats

     
  • use CSS inlining
 

8. Do It For Google

 
Pleasing Google and pleasing the User are (or at least it should be) the goals that drove you when you actually built your site (or your client's) in the first place, right? Well, then if you've already started to draft a “How to speed up my site” plan in your head while reading this post, you're on the right path: Google rewards developers/site owners like you!
 
The almighty search engine will always appreciate (and thus rank better) optimization-oriented developments practices. It's pretty logic: a happy user (“happy” for the web pages he/she accesses load content really quickly and doesn't make him/her lose valuable time) means... “happy Google”, so to say.
 
And how does this impact you? You do the math!

 

9. "Tame" Your Third Party Scripts

 
In a few words: don't let the “little ones” run the show on your website!
 
Mind you monitor all those third party scrips (Facebook “like” buttons, analytics trackers etc.) lest they should considerably slow down your website!

 

10. Limit Your Dependency Requests

 
How do you limit all those dependency requests adding bloat to your website and slowing down the downloading process? There are a couple of good practices that you should consider starting today:

 
  • use a CDN (especially if you're website's a large, heavy-content one)

     
  • use SVG or sprites methods for handling images from your style sheets 

     
This is it, our “decalogue” of good practices for optimizing your website for higher speed. One more thing we'd like to add: there's no such thing as “a too fast website”, there's always room for even more optimization
Development

We do Web development

Go to our Web development page!

Visit page!

Recommended Stories

The Complete Website UX Audit Checklist for 2020: 12 Steps to Uncover Usability Issues on Your Site
Users come to your website. They start the checkout process and... leave. Why is that? Is there a "best practice" process to identify the pain points in the user journey? A website UX audit checklist that you could use? And how would you know: what to include in your audit? what pages to review? how to interpret all the collected data and turn it into actionable insights? You've got the questions, we've got the answers. And we've included them all in an 11-point checklist to run whenever you want to assess the user experience on your website: What Is a UX Audit More Precisely? Source: process.st Let's go back to the example above: You notice that visitors on your website keep abandoning their shopping cart.  In this case, a website UX audit might uncover specific flaws in the customer journey responsible for this low conversion rate: confusing navigation structure cluttered screens a too complicated checkout process an inconsistent visual style across pages not enough payment options In other words: A UX audit helps you identify all those usability challenges with a direct impact on users' experience. key elements on your website that are too hard to find ... or too hard to use the workflow users are to perform is not that obvious and intuitive And it helps you find your answers to legitimate questions like: What is working and what isn't? What metrics are your collecting and what metrics should you be collecting? What does the gathered data tell you about your website users' needs? Why do they behave the way they do and how might they behave once you've taken follow-up action? In short: a UX audit provides you with those metrics which, once turned into updates to your website, help you boost conversions. Step 1: Run Stakeholder Interviews and User Surveys Start off by talking to your: development team, the one in charge with all the UX improvements on your website; ask them about their development challenges, future plans with the company website, and specific requirements for achieving those plans marketing team and salespeople, who might already have their own user survey results collected along the years Then, run your own updated user surveys and categorize results by: task severity findings per screen  Tip! Run usability tests to filter through the qualitative data collected on these interviews and surveys. For instance, users might report a discouragingly complex checkout process. A usability test will confirm or disprove this claim. Step 2: Create Your User Persona- A Key Point in the Website UX Audit Checklist Who are you improving your website UX for? And there are different types of users visiting your website and each user type stands for a unique way that you could improve the user experience delivered there. To narrow down your options, you need to figure out who's the most representative user for your website.  Remember to add these 3 key attributes to your user persona as you're building its profile: user goals: do they align with your business goals? needs: what does he/she try to accomplish when visiting your website? frustrations: things to avoid when designing this user persona's experience on your website Tip! Bring your business goals (that we'll be focusing on at Step 3) into the picture, as they'll help you determine who your user persona is. Also, while at this stage in your UX audit, answer these 3 crucial questions: what are your visitors' demographics and behaviors on your website where do they come from to your site? are current visitors also your target users? Step 3: Get Specific with Your Business Goals  Let me guess: Your business goals tied to your website are related to conversions and revenue. At this step of the audit, you'll want to clearly define those goals that a better UX can directly impact. Once you've defined your business goals, include these key questions into your website UX audit checklist: What's my business goal? What's the key user goal? What actions do I want users to perform on my website? What are the top brand values that I want to communicate to my website visitors? What are my key sales channels? Who are my top competitors? Step 4: Perform a Cognitive Walkthrough of Your Website  ... to see things through the visitors' eyes. Try to perform those actions that users come to your website for. And stay vigilant to detect any obstacles that might stop you or slow you down when trying to achieve your "user" goals. Tip! Since you already know all too well how your website works, base the whole process on established criteria. This way, you can keep your focus on those user goals. Step 5: Dive Deep into Your Data Analytics Your website analytics reports make some great insights into how great or... less than great the user experience delivered on your site is. Use it to "fuel" your UX audit with, as it'll provide you with key information on: conversion or cart abandonment what visitors were doing before accessing your website (most common entry points to your website) specific user flows on your site traffic metrics hotspots on your website Tip! Filter your data analytics by specific segments and timeframes.  Source: uxbooth.com Supplement the valuable data that you get from Google Analytics with reports provided by tools like: Kissmetrics Hotjar Crazy Egg Step 6: Determine Your Conversion Rate Performance Is your website an eCommerce one? Then you'll want to take a close look at your sales and download figures as you try to improve your site with a UX audit. Figure out how well your website copy supports the overall user experience and whether your website meets visitors' pain points. Step 7: Identify Your Highest Converting Pages Another crucial point to add to your website UX audit checklist. Why? Because the pages with the highest conversion rate give you an insight into what UX is doing right on your website. They stand for some successful customer journeys that you'll want to get inspired by and... replicate on other pages on your site, as well. Step 8: List Your High-Traffic Pages with a High Bounce Rate "How to perform a UX audit?" One of the essential tasks to add to your "To Do" list is identifying those high-converting pages with a high bounce rate (above 70%). Step 9: Identify Strong Points and... Pain Points in the User Journey Where does the user step off the intended path? Why is he/she failing to take action? It's the strong points in the customer journey (those high-converting pages that you've listed at Step 7 are the best places to look for them) that'll provide you with the best solutions for fixing the weak points identified at this step. Step 10: Take a Close Look at Your Site Layout Your website layout is directly "responsible" for a great deal of the user experience delivered on your website.  So, at this point in your website UX audit checklist you'll want to check specific aspects of your site layout with a direct impact on the visitors' experience: Does it manage to meet visitors' needs? Is your website navigation intuitive enough and easy to use? Is your on-site search accessible enough? Is your website copy in line with the user journey? Step 11: Run a Competitive Analysis How will this help you? You identify your target customers' expectations when interacting with websites similar to yours. That sell the same type of products or services. What's those sites' traffic compared to yours? How usable are they? How well do they rank in the search engine results page? Seize any opportunities that your competitors might have missed. Or get inspired by what they do great in terms of user experience and... do it better on your own company website. Step 12: Organize Your Findings Into a UX Audit Report And use categories like: major usability issues A/B test suggestions challenges predicted impact ... to sort and group your results. 3 Tips to Keep in Mind When Conducting Your UX Audit I've saved 3 best practices for last. Apply them to streamline the whole process and to future-proof your findings. Group all your findings into buckets. It'll bet easier for you (and your team) to interpret your findings when you group them into categories (e.g. the "website navigation UX issues" category) Take screenshots of all the issues found. In other words: screenshot everything! It's the easiest and most effective way to document every aspect (web page, interaction, etc.) of your website with a direct impact on the user experience. Look for trends. Use your spreadsheets of UX findings to identify... patterns. Are there any common conventions and structures that visitors expect to find on your website? That they're already familiar with?   The END! I think I know what you're thinking right now: "But taking all the steps included in your website UX audit checklist takes... ages! And during all this time I'd have to put my team's projects on... hold." Not if you pass on the audit "burden" to us. Just drop us a line and let's uncover all the opportunities for UX optimization on your website! Image by Mudassar Iqbal from Pixabay     ... Read more
Adriana Cacoveanu / Jul 01'2020
How to Improve Internal Site Search and Boost Your Conversion Rate in 12 Easy Steps
They're not there for the looks, you know. Users come to your website to search for... something — a product, a service, information. Its role is to make it easy for them to find that "something" via its search engine. But how to improve internal site search and "shorten the time between query to conversion"? What are some best practices when adding search functionality to your website so that: it serves up the most relevant search results? it reduces user-friction? it provides the best search experience? it helps users to convert faster? Here's your 13-step checklist to an effective on-site search: Why Site Search Is Important?   "Adding on-site search to your website increases conversions by 480%!" (Neil Patel).  Just think about it: The user's found your website (your SEO efforts have paid off). It's something specific that he's looking. Or he at least has some idea of the type of products/services that he's there for. Now, why would you want to make him go over... 5 different pages of results before he reaches that service/product page that he was looking for in the first place? Instead, your website's search engine should help him out with: search suggestions autofills real-time preview of search results Like Office Depot here, whose on-site search engine gave me plenty of search suggestions when I looked for a "chair": Step 1: Put It Front and Center One of the powerful internal site search best practices. But also the most ignored one. Don't be that website owner. Instead, put your search box where users can see it the instant they get on the web page: besides the navigation right below the navigation, as a distinctive element above the navigation in the header Take Zara's example here: how long does it take you to find the search box on this page? Step 2: How to improve internal site search: Make It Easier to Navigate  And what better example than Google's Search Engine itself? You just can't miss it on the page. Moreover, search results are grouped into different categories — images, videos, news — lifting some of the burdens off your shoulders as an online "searcher". It'll even turn your misspelled search queries... Key takeaways: consider using tabs by categories to make the user search experience as breezy possible make the most of keyword matches ... and assistive technologies It's all about shortening the time from the user's query to... conversion, remember? Step 3: Boost Your Site Search Engine with Product Metadata "How to improve search functionality?" By forgetting all about the "meta tags have no impact on SEO" principle and starting to add relevant product metadata. For yes, they do not count for traditional search engines, yet they have a huge impact on the way that your on-site search engine finds any product in your inventory. So "feed" it metadata: titles, tags, attributes, categories, descriptions, specific keywords that your target customers will enter... Step 4: Cater to All Kinds of Searches There'll be users who know exactly what they need. So they'll be typing the exact product/serial number in the search box. And there'll be users who have heard of an innovative, newly launched product in passing and will misspell its name. Make sure your on-site search will serve up relevant results for both types of user profiles: turn the product/serial number into a search criterion make sure your on-site search turns relevant results on "misspelled queries", as well  Step 5: "Fuel" Your Internal Search Engine with Long-Tail Keywords   "How to improve internal site search?" By optimizing your website copy for long-tail keywords (3-5 words). The more you use, the more power you'll inject into your search engine. Let's take this example: You go to Office Depot's website looking for an office chair. Chances are that you're trying to find something more specific than a "chair". You want it to be... grey, ergonomic, made of leather or mesh. You get the idea. You're not looking for a generic "office chair".  Now, switch from your role of potential customer to that of an online owner and start optimizing your website copy for long-tail keywords. They still have most of the search volume. Step 6: Give Users Multiple Filtering Options via Faceting  Add multiple categories to help users filter through generic query results.  This way, you enable them to make their way to more specific results. This internal site search "best practices" becomes a must-have if it's an: eCommerce website with a large inventory ... that you have. A customer won't spend half a day looking for a "green cotton t-shirt for girls size XS", digging through dozens of result pages. Take H&M's example here: they're using faceted search options to help me narrow down my options when I type a generic query like "shirt". Step 7: Tailor the Search Experience As Per the User's Location "How to improve internal site search?" Localize your website content. Or, in plain English: add regional dialect and idioms to your copy. And you'd also want to include "popular searches in your... (name of the region)". The whole idea is to: personalize the search experience, making it more user-friendly help the user find what he's searching for faster (and to convert faster, as well) Even if he's using a dialect-specific word or phrase as a search query. So, start building a list of synonyms for your search queries and use them to improve the search functionality on your website. Step 8: Implement In-Search Filtering Go beyond autocomplete if you want to provide the best search experience to your potential customers. In this respect, advanced in-search filtering is one of the most powerful on-site search features. Take this example: Someone enters "sneakers" in your search box. You'd want to give him/her more search options, more specific suggestions like "sneakers in men's clothes" or "sneakers on sale"... Again, a must-have on-site search feature if it's a large eCommerce website that you have. Step 9: Add Informational Content, As Well Not everyone on your website is there to buy something from you.  Some of them are looking for specific information on your products. So, another effective way of improving search functionality on your site is to you ensure there's enough info-rich content for these users to dig into. Step 10: Serve Targeted Search Results Based on User Behavior Data Here's another answer to your "How to improve internal site search?": Make the most of previous user behaviour to serve targeted search suggestions. Rely on users' profile log information to: identify distinctive patterns and tailor your recommendations accordingly identify regional phrases (e.g. "soda" instead of "coke") and use them to personalize your suggestions Step 11: Give Users More Control Over the On-Site Search Results How? By giving them: categories to filter through their search results drop-down menus brand names that they could use as search criteria a personal search results page where they can keep track of their past activity and use quick search options based on their past behavior Step 12: Serve Relevant FAQs on Every Search Another effective and easy way to optimize search function on your site is to display FAQS at the end of each search This way, users get more information about the product features/price/specific fees/brand that they're interested in. Tailor these lists of questions to the user's past behavior and query data and turn personalization into your most powerful ally. The END! Maybe you do want to increase the conversion rate on your website, but without having to: optimize heavy of loads content for long-tail keywords get tangled up in user data to track down all the regional words variations  write metadata for... hundreds of different product pages We get you. And we've got your back. Just drop us a line and let's improve your on-site search so that you stop leaving conversions on the table. ... Read more
Adriana Cacoveanu / Jun 26'2020
Drupal Performance Optimization: 17 Drupal Caching Best Practices To Speed Up Your Page Load Time- Part 2
"How can I make my Drupal 8 website faster?" Are you still struggling with this? Still striving to figure out which are the best (and most straightforward) Drupal performance optimization techniques for your website? Well, here I am today with a handful of 9 more ways that you can speed up your Drupal site. In addition to the 8 ones that I covered in the first part of this post. And yes: it's another round of Drupal caching best practices that'll help you boost your page load time. So, let's dive right into it: Tip #9: Use the Dynamic Page Cache Module  ... to cache for both authenticated and anonymous users. Unlike the Internal Page Cache module, that I mentioned in Part 1, which only caches pages for anonymous users. Tip #10: Use Distributed Cache, A Highly Effective Drupal Performance Optimization Technique But how does it work, more precisely? Once you've installed a distributed cache, it'll store your database's cache tables (Drupal's "cache_" tables) either in: file or memory Tip #11: Enable Drupal Cache for Anonymous Users Another one of those quick, yet powerful Drupal performance tuning steps that you can take. Tip #12: Use Squid to Cache Images and Static Content on Your Website "How to optimize Drupal for better performance?" You could go for Squid, an open-source caching proxy server. Now, since Drupal's already famed for its particularly dynamic content, the only cases where Squid does make a great performance booster are those where you need to cache static content. Tip #13: Add a Front-End Cache (i.e.Varnish Cache) Here's another handy Drupal performance optimization method for you: Use Varnish Cache to reduce the load on your server. How does it do it? It stores the HTML response, so that next time that the same page is requested, it serves it from memory. The result? Bypassed PHP and web server and... improved page load time. Tip #14: Use the Advanced CSS/JS Aggregation Module to Improve the Front-End Performance of Your Website  Combining your assets together is one of the most straightforward and effective ways to address those Drupal performance issues on your website. From: file grouping to caching to compressing ... the AdvAgg module handles all the steps that you need to take to aggregate your CSS and JS files. Tip #15: Install Memcache to Reduce Your Database Load You know how you're often struggling with keeping your database load to a minimum by caching database objects in RAM? In this respect, Memcache makes a great Drupal 8 performance optimization technique. It helps you reduce that load on the database and boost your page loading time. How? By taking standard caches out of the database. And by caching the results of resource-intensive database operations... Tip #16: Use the Entity Cache Module to Cache... Entities   Another caching best practice to boost Drupal 8 with is installing the Entity Cache module.  And its name says it all: it helps you cache entities. Tip #17: Cache Views  Here's the situation: Page requests made by registered users on your website lead to loads of queries to your database. Which impact the page load time. Now, to query the database, views are being used. And this is where this views caching module comes in handy to... boost things in there.   The END! These are our 17 recommendations for you on the best Drupal performance optimization methods for boosting your page load time. Not thrilled about the idea of having to go through the... Memcache installation process or to configure Varnish for Drupal? Or to put your current projects on hold so that your team can set up a... distributed cache? Maybe you don't have a professional Drupal maintenance team that could handle all these caching settings? We're here to help! Just drop us a line and let's figure out which of these 17 techniques are best suited for your website and the specific performance issues that it's struggling with. Let's speed things up in there! Image by Izwar Muis from Pixabay   ... Read more
Silviu Serdaru / Jun 23'2020