Update scripts.jsx
This commit is contained in:
parent
1141a2e894
commit
78216e8151
|
@ -42,11 +42,11 @@ module.exports = class extends Component {
|
|||
<script src={url_for('/js/flying-pages.min.js')} defer={true}></script>
|
||||
<script src={url_for('/js/lazy-css.js')} defer={true}></script>
|
||||
<script>
|
||||
var lazyLoadInstance = new LazyLoad({
|
||||
elements_selector: 'img',
|
||||
threshold: 0,
|
||||
});
|
||||
</script>
|
||||
(function () {
|
||||
function logElementEvent(eventName, element) {
|
||||
console.log(Date.now(), eventName, element.getAttribute("data-src"));
|
||||
}
|
||||
</script>
|
||||
</Fragment>;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue