Git Product home page Git Product logo

lazyadsense's Introduction

LazyAdsense

Lazy load Adsense ads with Intersection Observer

Lazy Adsense is an open source javascript library that support lazy loading adsense ads when the ads are visible in viewport.

What is lazy loading? Lazy loading is the practice of delaying load or initialization of resources or objects until they’re actually needed to improve performance and save system resources.

Advantage of Lazy Loading

  • On-demand loading reduces time consumption and memory usage thereby optimizing content delivery. As only a fraction of the web page, which is required, is loaded first thus, the time taken is less and the loading of rest of the section is delayed which saves storage. All of this enhances the user’s experience as the requested content is fed in no time.
  • Unnecessary code execution is avoided.
  • Optimal usage of time and space resources makes it a cost-effective approach.

Click Here for More Info

lazyadsense's People

Contributors

niresh12495 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lazyadsense's Issues

with inline js scripts

Great script . . .

Sorry if its a wrong question .

how can we lazy load such inline js scripts . Like loading this scripts only user interact the page or scroll ..

<script type="text/javascript">
var adgh_p1="123";
var adgh_p2="";
var adgh_p3="0";
var adgHdSc=document.createElement("script");document.head.appendChild(adgHdSc);adgHdSc.async=true;
var adgHscParam="p1="+adgh_p1+"&p2="+adgh_p2+"&p3="+adgh_p3;adgHdSc.id="adg_pixel_header_script";adgHdSc.src="//adgebra.co.in/afph/afph.js?"+adgHscParam;
</script>

thanks in advance :)

About Lazy Loading

Hello Niresh !

Thanks about it ! I have a question... does it respect Google Policies?
If i want not to lazy load but only differ all ads after the load page.. to not affect the PageSpeed... Is it the same ?

Thanks !
Pascal

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.