That's our company base boilerplate for an internal projects.
Install dependencies
bower i
npm i
Run
gulp
lazyLoadScript - used for lazy loading any js sources in some time. Default time is 2000 ms.
Usage example:
<div data-script="{link}" data-time="{time}"></div>
<img class="lazy" src="{link}" data-srcset="{link}"
srcset="assets/template/image/1x1.png" alt="">
<div class="lazy" data-background-image="{link}">
<div class="gallery">
<div class="gallery-item" data-src="{youtubeLink}">
<img class="gallery-image preview lazy"
src="{previewLink}" data-srcset="{previewLink}"
srcset="assets/template/image/1x1.png" alt=""/>
</div>
<div class="gallery-item" data-src="{link}">
<img class="gallery-image lazy"
src="{link}" data-srcset="{link}"
srcset="assets/template/image/1x1.png" alt=""/>
</div>
</div>
<a class="smooth-scroll" href="#anchor"/>
<input type="tel" class="phone-mask" value=""/>