WP lazy loading using intercooler.js 04

Time to make a plugin.

A first plugin draft

There is no point in going forward implementing the lazy loading functions using a theme: I will move to a plugin scaffold to iron out the idea.
After a quick scaffolding using the grunt-wp-plugin template for grunt-init I’ve ported the current code to a first draft of a plugin that’s working on any image that’s shown on the page using WordPress defined functions to do it.
The plugin is on GitHub and, as it gently reminds, will require the wp-intercooler plugin to work as intended.


I will go over each plugin function to test possible extensions and add functional tests to it.