Basic Performant Sharing Buttons

This is a lightweight, simple solution for adding sharing buttons to your site. Like many things, there are many ways to achieve this but the main goal of this solution is performance.

Every major social network provides an easy way to add sharing buttons to your site, but the downside of many of these is each button loads various scripts and stylesheets increasing the page weight. Generally speaking, say you wanted to have 4 sharing buttons (Twitter, Facebook, Google+ and LinkedIn) it’s more than likely you will be loading 8+ extra resources.

Using the provided solutions from the major networks is convenient, but less then ideal if performance is a main priority.

Don’t Load it till it’s Needed

One of the best ways to prevent page bloat is to treat everything as a resource that doesn’t need to be on the page until the user has to interact with it. The technique is called lazy-loading, and can be performed on almost any asset. It’s especially good for responsive websites, when the same content needs to be loaded across multiple devices, while still loading as quickly as possible. Let’s take a look at a few ways to make this possible.

Barebones ES6 project using Gulp

Dennis Gaebel previously discussed preparing for ES6, but in this post he take things one step further and examines an actual project using the tools he discussed in that article. He explains the steps required in order to setup a barebones ES6 project with the help of our faithful tooling companion Gulp.

Newsletter Sponsorship Opening

A last-minute scheduling change has opened up this week’s WDW newsletter sponsorship. If you have a product or service that you’d like to promote, please do get in touch.

View More Posts

Hot Links

CSS Stats

Adam Morse and Brent Jackson just pushed a nice new update out.

If you are in need of gathering some quick insights into your CSS, this is your tool.

AM – Attribute Modules for CSS

Glen Maddern:

Attribute Modules (AM) is a technique for using HTML attributes and their values rather than classes for styling elements. In doing so, each attribute effectively declares a separate namespace for encapsulating style information, resulting in more readable and maintainable HTML & CSS.

A super interesting concept developed by 3 talented individuals. Looking forward to digging into it a little further.

Documentary about Jeffrey Zeldman

A documentary that highlights Jeffrey’s two decades of designing, organising and most of all sharing on the web.

Make time for it!

Latest Screencast