Giter Site home page Giter Site logo

lemon-soda's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lemon-soda's Issues

Generate fallback CSS automatically

To support older browsers (which don't allow data URIs to be used this way), and browsers with JS disabled, sixpack should be able to generate a CSS file that points to the original images files.

Requirements:

  1. Allow user to specify the base URL for the image directory in sixpack
  2. Generate a style sheet which points to those images, exactly replicating the end result of using the sixpack JSON file
  3. Generate a block of code to insert in the HTML file which will enable the fallback.
  • noscript code embedding the style sheet
  • call to LemonSoda method to trigger feature detection
  1. Feature detection for using data URIs in LemonSoda

Build the CSS file in the server. Does it worth?

Hello @osuushi,
your plugin is very interesting and you did nice work with your code. :)

I was thinking why you don't to build the CSS in the server and load it from the HTML. In this way you will benefit from:

  1. processing time in JS
  2. no need to load the JS file in the frontend

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.