@Findus23 opened this Issue on April 4th 2021 Member

It seems like the images used by the review plugin (e.g. /plugins/Feedback/images/saasworthy.png) are loaded on every Matomo page view, even if the popup is not shown.

Changing <img src=""> to <img ng-src=""> doesn't seem to change a thing.
This could be used to save five requests that could instead load images that are blocking the rendering of the page.

@sgiehl commented on April 6th 2021 Member

@Findus23 Did you try if a loading="lazy" attribute would do the trick?

@Findus23 commented on April 6th 2021 Member

@sgiehl I didn't think of that and it does indeed seem to work.
While this doesn't work in the 30% of browsers that don't support native lazy-loading yet, I guess this is a workaround unless someone knows an angular-related trick.

This Issue was closed on April 12th 2021
Powered by GitHub Issue Mirror