
We’re excited to hear your project.
Let’s collaborate!
We are a web development team of our word. And since we promised we would come back with some more best practices for a sustainable web development process... here we are!
In this post, as already revealed to you in “Part 1”, we will be highlighting:
Here we go:
If you're confident enough (or your team is) to get your hands dirty in server configuration and maintenance there are plenty of high-impact measures you could apply:
BigPipe has been and still is one of Drupal 8's biggest “innovations”.
It's nothing new, Facebook's been using this technique for a long time for improving page load times. Yet, now you have it in the form of a stand-alone module that you can leverage right on your Drupal 8 site!
And it would be a pity not to!
Just think about it: the BigPipe module practically segments each one of your web pages into multiple pagelets and streamlines the content loading process. It sends the cachable content segments first and the non-cachable, dynamic content last.
Drupal “saves the day” (and the planet, too, when used properly) once again! It gives you the DB Maintenance module to enable, to leverage and to integrate with your sustainable web development workflow.
And this will prove to be a powerful tool to support your database optimizing endeavors: it runs MySQL's OPTIMIZE TABLE regularly using cron.
If in Drupal 7 you still need to enable caching yourself (configuring your site's performance on the Admin page), in Drupal 8 page caching happens... naturally, by default (as well as assets aggregation).
And there's more! The caching enhancements made to Drupal 8 impact even pages “carrying” dynamic content.
And this is a big step forward towards top site performance and using energy responsibly if it's an interactive (and therefore with dynamically generated content) Drupal site that you own.
… and expect your web pages to load X times faster!
Be (still) one of the early adopters of HTTP/2! Why should you wait till it turns into a major trend? What you know for sure now is more than enough if you're truly determined to go further with your sustainable web development initiative:
A website about to turn green calls for a... green hosting company, don't you agree?
So, it's time you get picky when it comes to choosing your host and to put the company you're already collaborating with to the... green test:
If it does not live up to your standards of sustainability... consider migrating to a more “welcoming”, greener host!
And here you can choose the Drupal way or the Apache way of compressing your Drupal cached pages.
Also, you could even step up when it comes to your commitment to a sustainable web development workflow. Supercharge your server by installing Varnish and enabling Drupal's own Varnish module, as well.
This way, your server will be ideally equipped for caching, not to mention that Varnish is conveniently easy to configure!
… and reduce, significantly, the energy used during content delivery to your users' devices.
Practically a CDN will locate the server (since we're talking about an entire network of servers put at your disposal) that's geographically closest to a given visitor on your website. Next, it will serve the requested content from THERE, much faster and using less energy.
In short:
Once you've made your commitment to sustainable web development, optimizing your content:
... is a must.
And here are the 3 “fronts” you should be concentrating your efforts on:
We've already tackled the “irresponsibly heavy images'” issue. So we're not going to point out, once again, the tools and the techniques at your disposal for reducing your visual content's size.
What we do want to outline now is that you should keep your user interface efficiently simple!
Don't make your visitors get tangled up in visuals, don't turn your UI into a maze for your visitors to solve. Keep it lean and shamelessly intuitive!
The less time a visitor invests in tracking down the information he is looking for, the smaller his/her web use carbon footprint will be!
And how do you make your content easy to find? There are a few simple tricks:
All those out-of-date images, unused files, “dusty” written content that no one reads anymore still lingering on your website, all those videos dating centuries ago should... go. Should get archived!
Not only will you lighten the load your site needs to carry (and reduce energy waste) and take a burden off your server's shoulders, but this decluttering session will benefit your users too. Pages will load significantly fast! And overall maintenance costs will get lower.
Not to mention that pages will load fresh, quality content ONLY for search engines to index and your users to enjoy.
The END! This is our list of tips and tricks on how to implement the sustainable web development principles into your own website.
As you can see, you're not being nickel and dimed in options when it comes to making your Drupal site (more) Earth-friendly! And they do range from basic, handy solutions that require no out-of-the-ordinary technical expertise, to a bit more complex ones.
So you have no excuses for not contributing, at a basic level at least, to building a more sustainable web!
We’re excited to hear your project.
Let’s collaborate!