The Arcive of vBulletin Modifications Site. |
|
lazy load, load your page faster & save bandwidth Details »»
|
|||||||||||||||||||||||||||||
|
lazy load, load your page faster & save bandwidth
Developer Last Online: Oct 2015
this mod is using jquery lazy load by Mika Tuupola. you can see demo at his site here
Lazy Load will delay the loading of images outside of viewpoint to make the page load faster. That is, images in the visible part of the web page are only loaded and remaining images are loaded when visitor scrolls down the page, at some times it can even helps to save bandwidth. in template headinclude, add this code at the bottom Code:
<vb:if condition="THIS_SCRIPT == 'showthread'">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/jquery.lazyload.mini.js"></script>
<script type="text/javascript" charset="utf-8">
$(function() {
$(".postbody img").lazyload({placeholder : "{vb:raw vboptions.bburl}/clear.gif", effect: "fadeIn"});
});
</script>
</vb:if>
done!!! pls click install if you like this modification ![]() Thanks to OldSchoolDSL for this suggestion Download Now
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
tagged
|
|
#3
|
||||
|
||||
|
ditto
|
|
#4
|
|||
|
|||
|
Can not save headinclude.
Edit and save headinclude Quote:
Quote:
vB 4.1.2 bug? |
|
#5
|
|||
|
|||
|
Quote:
sorry.. typo in if condition. fixed. |
|
#6
|
||||
|
||||
|
Tagged
The link to the lazyload website is broken by the way. |
|
#7
|
|||
|
|||
|
mm... link fixed
|
|
#8
|
|||
|
|||
|
:up: Installed on 4.1.0 ,
works good. 5 stars for you bro. Thanks for the mod. |
|
#9
|
|||
|
|||
|
Cheers, Great addition for VB4 boards, will try this soon.
Thanks |
|
#10
|
|||
|
|||
|
Installed, although as the original author stated on his site...
http://www.appelsiini.net/projects/lazyload/ He does not believe this will completely work with more modern browser. Also I would recommended the following.... 1) Change the JQuery version number from: PHP Code:
PHP Code:
|
![]() |
|
|