The 'Last Minute Skin' Technique

How does it work?

The last minute skin is a JavaScript technique which reduces the size of downloaded pages by caching most of the page rendering code on the client browser. This page is an example which involves:

Since the 'lastminute.js', 'jquery.js' and 'skin.js' scripts are the same on every page, they can be cached on the browser and used without an additional query to the server. This allows quite complex page layouts with reduced page overheads (since the layout data is only downloaded once), and also helps reduce server-side overhead.

You can view the source of this page to see for yourself.

What is it for?

This technique has several advantages over other means of rendering pages:

There are, of course, disadvantages: without JavaScript, the page is just ugly (a noscript stylesheet can ease the pain, though); and the page layout setup eats precious rendering time on every page load.