Skip to content

Commit

Permalink
Disable img lazyload if Incito is lazyloaded (#235)
Browse files Browse the repository at this point in the history
* Disable img lazyload if Incito is lazyloaded

* Disable canLazyload for incito lazyloading
  • Loading branch information
jrlarano authored Jun 6, 2024
1 parent 7e04261 commit fab0e78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/incito-browser/incito.ts
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,7 @@ export default class Incito extends MicroEvent<{
if (res.status === 200) return res.json();
})
.then((res) => {
this.canLazyload = false;
el.innerHTML = this.renderHtml(res);

this.observeElements(el);
Expand Down

0 comments on commit fab0e78

Please sign in to comment.