background preloader

Lazy Load Plugin for jQuery

Lazy Load Plugin for jQuery
Lazy Load is delays loading of images in long web pages. Images outside of viewport are not loaded until user scrolls to them. This is opposite of image preloading. Using Lazy Load on long web pages will make the page load faster. In some cases it can also help to reduce server load. Plugin is inspired by YUI ImageLoader Utility by Matt Mlinac. For those in hurry there are several demo pages: basic options, with fadein effect, noscript fallback, horizontal scrolling, horizontal scrolling inside container, vertical scrolling inside container, page with gazillion images, load images using timeout and load images using AJAX(H). When checking the demos clear browser cache between each request. How to Use? Lazy Load depends on jQuery. You must alter your image tags. <img class="lazy" data-original="img/example.jpg" width="640" height="480"> $(function() { $("img.lazy").lazyload(); }); This causes all images of class lazy to be lazy loaded. PRO TIP! Setting Threshold Event to Trigger Loading

jQuery Masonry yepnope.js | A Conditional Loader For Your Polyfills! SlidesJS, a responsive slideshow plug-in for jQuery (1.7.1+) with features like touch and CSS3 ColorBox A lightweight customizable lightbox plugin for jQuery View Demos Released under the MIT License, source on Github (changelog) Download Install via NPM npm install jquery-colorbox Compatible with: jQuery 1.3.2+ in Firefox, Safari, Chrome, Opera, Internet Explorer 7+ Supports photos, grouping, slideshow, ajax, inline, and iframed content.Lightweight: 10KB of JavaScript (less than 5KBs gzipped).Appearance is controlled through CSS so it can be restyled.Can be extended with callbacks & event-hooks without altering the source files.Completely unobtrusive, options are set in the JS and require no changes to existing HTML.Preloads upcoming images in a photo group.Currently in use on a million-plus websites. Instructions & Help The FAQ has instructions on asking for help, solutions to common problems, and how-to examples. Usage Colorbox accepts settings from an object of key/value pairs, and can be assigned to any HTML element. Settings Public Methods Event Hooks Hey,

Numeral.js Online JavaScript beautifier Moment.js | Parse, validate, manipulate, and display dates in javascript. Strip - Une lightbox qui s'affiche sur le côté de l'écran - Korben Strip – Une lightbox qui s’affiche sur le côté de l’écran Si vous développez pour le web, vous connaissez sans doute le concept des lightbox, ces popup JavaScript qui s'incrustent dans n'importe quelle page et qui permettent d'afficher le contenu de votre choix... Image, texte, vidéo... Peu importe, c'est du html. Le truc avec ces fenêtres modales, c'est qu'en général, elles s'affichent en plein milieu de la page, couvrant une grande partie du contenu. C'est en tout cas ce qui se passe avec tous les scripts de lightbox que j'ai pu tester dans mes folles années. Tous ? Strip est donc un système de lightbox moins intrusif capable d'afficher plusieurs visuels ou vidéos, avec en prime une API et un système de skin permettant de toucher en douceur à sa CSS. Pour en savoir plus sur Strip c'est par ici. Vous avez aimé cet article ? Je vous recommande aussi la lecture des sujets suivants...

php.js Offline.js – Handle your users losing their internet connection like a pro What is Offline.js? Offline.js is a library to automatically alert your users when they've lost internet connectivity, like Gmail. It captures AJAX requests which were made while the connection was down, and remakes them when it's back up, so your app reacts perfectly. It has a number of beautiful themes and requires no configuration. Install The easiest way to add Offline to your site is with Eager. Click Install to see a live preview of Offline on your website. Download Offline.js Pick a Theme Indicator Themes Submit a theme! Documentation HubSpot

Related: