Git Product home page Git Product logo

loadie.js's Introduction

Loadie.js is a lightweight jQuery plugin to create a preloader that doesn't suck and that is used by big firms.

1. How to include Loadie.js

If you haven't already, include jQuery and the latest Loadie.js Script on the AJAX-driven page.

<script src="http://code.jquery.com/jquery-latest.min.js">
<script src="js/jquery.loadie.min.js">

2. How to initialize Loadie.js

Just put in the following jQuery code in your page to initialize Loadie.js.

$('body').loadie(); // Change the wrapper if wanted.

3. How to update Loadie.js

If you haven't already, include jQuery and the latest Loadie.js Script on the AJAX-driven page.

var percent = 0.74;
$('body').loadie(percent); // Insert your percent as params.

4. Update your CSS files

If you are running a web page with a fixed header or something fixed or positioned absolute on the top, your loadie will not be visible, because there is something that is called z-index.

.loadie { z-index: 9999; }

Insert this little snippet into your css file and everything should work fine.

Options

At this moment Loadie.js (v1.0) doesn't support extensive options. If you have any ideas what Loadie.js could be, just leave us an issue at Github.

Copyright

This nice little jQuery plugin was crafted by @iDuuck of 9elements.

loadie.js's People

Contributors

sebastiandeutsch avatar brunowego avatar konraddysput avatar

Stargazers

 avatar Janak kr shrestha avatar Marcus Queiros avatar  avatar  avatar João Tomás avatar İsmail Can Şeker avatar ayush gupta avatar Selim Rana avatar Musaib avatar Shantanu Johri avatar Almamun avatar Colton Dick avatar Jared Bacik avatar Wellington Torrejais da Silva - Hotsoft_desenv2 avatar Sébastien Dumont avatar John B avatar Basem Nassar avatar Abdelrahman Hassan avatar Abdo - EVS avatar Muhammad Ayoub Khan avatar AkhilR avatar Sean McHenry avatar Luca Pagot avatar Juanan Rodríguez Martínez avatar  avatar Denisson Leal avatar Santiago Herrera avatar Luce Liu avatar Rakesh Sankar avatar Hugo Romano avatar Scott DeHaan avatar Anna avatar Alex avatar Scott J avatar Nehaa G avatar Jasper Espejo avatar  avatar EA avatar Austin Lazarus avatar Igor Ivanov avatar Adam avatar Rui Dias avatar Yannick Gauthier avatar Sangkyun Yoon avatar  avatar Gabriela A. Sanchez avatar Moazam avatar Mozahidur Rahman avatar  avatar Juan Fernando Villa Hernández avatar  avatar Ikomi Moses Mueyiwa avatar Michael Edelstone avatar Chris Soueidan (Loogart) avatar  avatar renato ricco avatar RK avatar Naren SivaSubramani avatar Makaila Akahoshi avatar hacfi avatar Nikolas Bousios avatar Niccolò Maggioni avatar Alan Jean avatar Abhishek B. avatar PsAiL avatar  avatar Stefano Fois avatar Edward avatar Tao Shi avatar George Gognadze avatar Jonathan Schneider avatar Anton Dvorson avatar Hiromu OCHIAI avatar Tiago Câmara avatar Syed Sami avatar Alpri Else avatar Emmanuel Salomon avatar Cédric M. avatar David Fieffé avatar 赵金添 avatar Fabrício Beltran avatar Habibun Noby avatar dajiaman avatar  avatar Alex Goller avatar Joshua Leung avatar  avatar sean avatar Chris avatar Ilya Medvedev avatar Ignacio Riberi avatar Wanico avatar Ivan Vermeyen avatar Fernando Bueno avatar Justin avatar Jessica Jean Bujazia avatar Mekonnen Assefa avatar Efrén Dgz avatar Kyle Ladd avatar

Watchers

 avatar Domenico Monaco avatar Omar Dixon avatar Sascha Gehlich avatar Eray avatar send2vinnie avatar Le TOULLEC Martial avatar Richard Hess avatar Péter Magyar avatar Cengiz Poyraz avatar Frederik (Rick) Reich avatar Adalbert Gorecki avatar Imran Ali avatar James Cloos avatar Sascha Schwabbauer avatar hunslater avatar  avatar Michael Anthony avatar Katerina Maniataki avatar Abhishek B. avatar Malte Baumann avatar Dody avatar Konstantinos Lypitkas avatar Noel Blaschke avatar Yared Getachew avatar  avatar  avatar Jacob Dawid avatar Akash Negi avatar  avatar Mirko avatar  avatar Christian Kienast avatar  Marcello Sylvester Bauer avatar  avatar

loadie.js's Issues

Reuse the same loadie

After calling $("body").loadie(1.0), display is set to none,
At that moment , if we call $("body").loadie(0.3), the loadie is not shown

WordPress & Loadie

Just a question if Loadie will work with a WordPress theme? Cool script :)

Justin

Add git tag

Hello @iduuck ,
I am the member of cdnjs project.
We want to host this library.
Please help us add git tag.
Git tag can help us to know your release version.
And we can auto-update the version when you have new release.
Thanks for your help!

cdnjs/cdnjs#8540

Css Z-index setting

When i tried, the progress bar is not visible. I found, evidently its because my website header z-index value is bigger that loadie.

I think this plugin must provide dynamic css setting for z-index in js function, although we can force edit the loadie css. Sorry for my bad english.. ✌️

Progress bar stops at about 95% stay there

I have implement you preloader script with example code from github. It works well on my local server but it have bug on live/production server.

Problem is that progress bar stops at about 95% of progress and stays there.

Here is my production server: http://www.pavelbinar.cz/
Here is my repository: https://github.com/pavelbinar/pavelbinar.cz
loadie.js implementation: https://github.com/pavelbinar/pavelbinar.cz/commit/5210205a6d843efc5cd9f7595cc2995017f2234e

Tested on:
Chrome 30.0.1599.101 on OS X 10.9 Mavericks
Firefox 25.0 on OS X 10.9 Mavericks
Safari 7.0 on OS X 10.9 Mavericks

Thanks!
P.

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.