Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

3scale-archive/gist_lazy_loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gist Lazy Loader

Asynchronous loading of Github gists

Installation

jspm install npm:gist_lazy_loader

Code Example

<div id='container'>
  <p>1</p>
  <script data-src='https://gist.github.com/jerzyn/9689187.js?file=require-plugin.php'></script>
  <p>2</p>
  <script data-src='https://gist.github.com/jerzyn/9689187.js?file=require-plugin.php'></script>
</div>
import { lazyLoad } from 'gist_lazy_loader'

var nodeList = document.getElementsByTagName('script')

lazyLoad(nodeList)

Tests

$ jspm-dev-server
$ open https://localhost:3000/spec/index.html

Contributing

  • Fork it ( https://github.com/[my-github-username]/october/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create a new Pull Request

About

Lazy loader for Github gist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published