The document.reload call causes some issues.
- Referrer information isn't interpreted correctly in Google Analytics. (organic traffic is measured as direct)
- Google PageSpeed Insights raises a 'too many redirects' error.
I've fixed this in my fork by removing the reload call and using a default 'type' if width is None. But this feels a bit like a workaround. And because I use 'desktop' as default type it will load desktop images on mobile devices on the first load.
Maybe you have some ideas?
The document.reload call causes some issues.
I've fixed this in my fork by removing the reload call and using a default 'type' if width is None. But this feels a bit like a workaround. And because I use 'desktop' as default type it will load desktop images on mobile devices on the first load.
Maybe you have some ideas?