Skip to content

Commit

Permalink
Adding flat lazy load using intersection observer
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimab committed Aug 10, 2020
1 parent a02f441 commit bece4c6
Show file tree
Hide file tree
Showing 11 changed files with 3,957 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 6 additions & 0 deletions flat_lazy_load_images.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name = "Flat Lazy load Images"
description = "FLAT module to allow lazy loading images using a single data attribute"
package = FLAT
core = 7.x
version = 7.x-0.1-dev
dependencies[] = system
13 changes: 13 additions & 0 deletions flat_lazy_load_images.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

/**
* Lazy load images module
*/
function flat_lazy_load_images() {}

/**
* Assets for lazy loading images
*/
function flat_lazy_load_images_assets() {
drupal_add_js(drupal_get_path('module', 'flat_lazy_load_images') . '/js/flat-lazy.js');
}
144 changes: 144 additions & 0 deletions js/flat-lazy.js

Large diffs are not rendered by default.

Loading

0 comments on commit bece4c6

Please sign in to comment.