GithubHelp home page GithubHelp logo

src-n-polyfill's Introduction

src-N Polyfill

Javascript src-N proposal for responsive images polyfill

Only 2,3KB minified and gzipped.

Based on Proposal for RespImg Syntax.

Use

Load the polyfill file (preffer minified src-n-polyfill.min.js) and call window.srcnpolyfill() at the bottom of your mark-up or at DOM ready event.

  <script src="src-n-polyfill.min.js"></script>
  <script>
    window.srcnpolyfill();
  </script>
</body>

Browser support

Works out of the box for any modern browser supporting window.matchMedia and ES5 array functions.

If you need IE 8 or IE 9 support, use the corresponding polyfills.

Changelog

  • v0.5.2 Support unicode characters in URL
  • v0.5.1 Enable use with Browserify and Debowerify
  • v0.5.0 Fix a candidates order bug
  • v0.4.0 Rewritten scope and dropped support for IE <= 9
  • v0.3.0 jQuery independent
  • v0.2.0 Reorganize and edit bower dependencies
  • v0.1.0 Initial version

Bitdeli Badge

src-n-polyfill's People

Contributors

vvondra avatar robinpokorny avatar bitdeli-chef avatar

Stargazers

Jiří Novák avatar Pavel Bier avatar Michal Gebauer avatar Martin Michálek avatar Sean Goresht avatar  avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

robinpokorny

src-n-polyfill's Issues

Add tests

The polyfill should be covered with tests, ideally testing (simulated) responsive behaviour.

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.