Code Monkey home page Code Monkey logo

pilpil's People

Contributors

dominionized avatar groe avatar tareq89 avatar zafree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pilpil's Issues

Adding New Feature

Hi,
without any formality, i just want to say that ...like you said on description "as seen on Medium."
Unlike this library, the images on Medium's website loads only when user scroll up on them.
On this library, the images first show the blur-canvas and after that the full-size image loads,
but it doesn't speeds up the loading time because the original image also start loading right after the smaller one finished.
I hope you get my point.
what are your thoughts on this? :) ^_^

P.S Sorry for my bad English

Works only for visible images

For images that are not visible when the script executes (i.e. their parent elements are hidden via CSS), the max-width and max-height attributes of the ratio placeholder are set to 0 permanently (because offset<Width|Height> are 0 at that time). This results in images permanently being hidden even when their parent container is made visible at some later point.

A typical scenario for this would be image sliders or carousels where only one image is visible at a time. It would be great if pilpil could support this kind of scenario.

A possible solution would be to offer a global method that users of the library can call to recompute widths and heights.

Btw: Really great work!

Does not work if the DOM has not been parsed yet

When I include the <script> in the <head> of a page, it's not working because it executes before the DOM has been parsed ompletely (document.querySelectorAll('.progressiveMedia') returns an empty array).

With jquery this could easily be handled with $(document).ready(...). In plain JS it seems to be trickier though.

Apply Source code in JSbin

Hello!

I have downloaded the source code and it doesn't work when I follow the instructions about how to use the Pilpil

Is it possible to upload the source code to the "http://jsbin.com/"? Is is easier to understand how the sourcecode is built.

Thank you!

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.