Code Monkey home page Code Monkey logo

mgt_lazyimageloader's Introduction

Mgt Lazy Image Loader For Magento

FEATURES


There are many ways to improve the performance of your magento store. All shop owners will know that product images play an important part. However, there is one problem with this. The more images you have, the slower the site loads and utilizes more bandwidth. A very good solution to this is to load your images on demand, or what is most commonly known as lazy loading.

Conclusion Lazy loading is a additional way to improve the page's loading time and overall performance. You only need 1-2 minutes to install this magento extension.

MORE INFORMATION

http://www.mgt-commerce.com/magento-lazy-load-images.html

INSTALLATION


  1. Extract zip archive and copy contents to the app/folder of your Magento installation
  2. Open the file "app/design/frontend/default/default/catalog/product/list.phtml"

search for


 <img src="helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>"
 width="135" height="135" alt="stripTags($this->getImageLabel($_product,      'small_image'), null, true) ?>" />

replace with


<img class="lazy" src="getSkinUrl('images/mgt_lazy_image_loader/loader.gif'); ?>" data-src="helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
  
  1. Clear the cache in Admin > System > Cache Management

CHANGELOG

1.0.4

  • Add newest jquery version
  • Change namespace to Mgt

1.0.3

  • Fixed typo in template

1.0.1

  • Add lazy loading in catalog search results

1.0.0

  • Fix typo

mgt_lazyimageloader's People

Watchers

 avatar

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.