A jQuery plugin for optimal use of screen space

Default avatar.
September 18, 2012

Freetile.js jquery pluginOptimizing how space is used on a screen is a key component of good web design, and especially of responsive design.

There are a number of ways to approach this kind of challenge, and one of the most popular is auto-arrangement of elements within a parent container. It’s efficient, and when well-executed, creates a layout that’s both visually appealing and functionally optimal.

If you’re designing a responsive site, you’ll almost certainly find the need to rearrange content in a dynamic fashion, based on the screen size of the user’s device. Auto-arranging content makes sense, as it minimizes the time spent customizing breakpoints for each page and each element.

Sites with constantly-changing content (like blogs or online stores) can especially benefit from auto-arrangement. After all, do you really want to have to go into the code for your client’s site and adjust the breakpoints and layout if they suddenly decide to start writing longer or shorter blog posts?

Doing all this from scratch is time-intensive and beyond the abilities of most designers who aren’t also developers. Instead, it makes sense to use a pre-existing plugin or framework.

JavaScript (including jQuery and other libraries) is the most common way of creating this kind of layout, most likely because of its wide cross-compatibility. This is how existing efforts like vGrid, Wookmark, and Masonry work.

Freetile.js is a recent jQuery plugin that enables this kind of dynamic, organized, responsive layout. It’s been used as the engine behind Assemblage and Assemblage Plus for nearly two years, and is now finally available as an independent open source project.


It’s different from existing efforts in this space for a few reasons. It allows any size elements to be used without the need for a fixed-size column grid. This frees you from having to specify a column width appropriate to your elements. And you can customize the algorithm that evaluates possible insertion positions for each elements, allowing you to express preferences like alignment and proximity.

It has a smart animation routine that makes it easy to distinguish between which elements should be animated and which should not. Specifying the animation within the code is easy, too.

Usage of Freetile.js is simple to use. Even if you’re not proficient in JavaScript, you should be able to figure out its usage pretty quickly.

Freetile.js is licensed under the BSD License, and is available via GitHub.

Have you used Freetile.js? What did you build? Share your experiences in the comments.

Cameron Chapman

Cameron Chapman is a freelance writer and designer from New England. You can visit her site or follow her on Twitter.

Read Next

3 Essential Design Trends, June 2023

This month we are focusing on three trends within a bigger website design trend – different navigation menu styles and …

15 Best New Fonts, May 2023

The choices you make when selecting a typeface have more impact on your design than almost any other decision, so it’s …

10+ Best Tools & Resources for Web Designers and Agencies (2023 updated)

Having the ability to envision a tastefully designed website (i.e., the role creativity plays) is important. But being …

20 Best New Websites, May 2023

This month, there are tons of great new agency websites to get excited about. 3D animated prisms are a popular theme, a…

How to Find the Right White Label Website Builder for Your Agency

Web design agencies face a lot of obstacles in closing the deal with new clients. One of the most common ones is the ar…

Exciting New Tools For Designers, May 2023

There are hundreds of new tools for designers and developers released each month. We sift through them all to bring you…

3 Essential Design Trends, May 2023

All three of the website design trends here mimic something bigger going on in the tech space, from a desire to have mo…

10 Best AI Tools for Web Designers (2023)

It’s time to stop worrying if AI is going to take your job and instead start using AI to expand the services you can of…

10 Best Marketing Agency Websites (Examples, Inspo, and Templates!)

Marketers are skilled in developing strategies, producing visual assets, writing text with high impact, and optimizing …

15 Best New Fonts, April 2023

Fonts are a designer’s best friend. They add personality to our designs and enable fine typography to elevate the quali…

20 Best New Websites, April 2023

In April’s edition, there’s a whole heap of large-scale, and even full-screen, video. Drone footage is back with a veng…

Exciting New Tools For Designers, April 2023

The AI revolution is having a huge impact on the types of products that are hitting the market, with almost every app b…