Coder Social home page Coder Social logo

justlazy's Introduction

justlazy.js Build Status Sauce Test Status

Lightweight javascript plugin to lazy load responsive images. Most of the existing javascript plugins using extensive dependencies or supporting just the img-tag without responsive parts. This plugin is supposed to be an alternative.

>> View demo and usage

>> View history and migration path

  • 100% performance with plain javascript (no jQuery)
  • 100% valid HTML (no empty src tag)
  • Simplicity and lightness (just lazy loading of images, no special cases)
  • Heavily tested on various devices, browsers and OS versions
Sauce Test Status

Installation

file include

You can download the latest release and include the justlazy.js file as follows in your page:

<script src="javascript/justlazy.js" type="text/javascript"></script>

If you want to use the lazy spinner, following css file is needed:

<link href="stylesheets/justlazy.css" type="text/css" rel="stylesheet">

npm

$ npm install justlazy

Contributing

Just feel free to contribute ..

Project setup

To set up the project you need the grunt-cli:

$ sudo npm install -g grunt-cli

Then you just have to clone the repository and run the install command:

$ npm install

Testing

To run tests manually you can use the $ grunt command to perform jshint and jasmine tests with phantomjs. Furthermore you can run $ grunt server to call the jasmine runner in your browser localhost:9999

Continuous Integration

justlazy has CI set up through Travis CI and Sauce Labs (free for open-source projects). Pull-request and checkins will be tested automatically.

justlazy's People

Contributors

fabianhoffmann2363 avatar fradav avatar mediamarco avatar thackba avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.