Closed (fixed)
Project:
Lazy-load
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Sep 2019 at 13:51 UTC
Updated:
17 Oct 2019 at 08:54 UTC
Jump to comment: Most recent
Comments
Comment #2
hn0852 commentedComment #4
osmanHi @hn0852, thanks for catching this.
I just pushed an update fixing those issues, and some more I found in the javascript.
Could you give a shot and let me know if it works on IE too?
Comment #5
hn0852 commentedHello,
thanks for the quick fix, it still doesn't work.
Problem 1: In IE, we're not able to use template literals .
Problem 2 : In IE, Object.entries does not exist, it return an error.
You should declare it if not exist:
Problem 3: line 53:
([key, path])declaration not compatible with IESo i corrected the code withObject.entries(lazysizes.plugins).forEach(function (key, path) {
utils.loadScript(Drupal.url('web/libraries/lazysizes/plugins/'+path+'.min.js'));
});
but "path" now return "0". I'm trying to find a workaround.
You should use
instead (tested and working with unveilhooks plugin use)
Edit: I must use web/libraries instead of libraries for code to work. is it a new issue?
H.S question: When do you plan to release the 3.x version?
Best regards,
Comment #6
osman@hn0852, just pushed a fix based on your recommendations. Could you try again?
Comment #7
osmanAs long as the
librariesfolder is in your project's docroot, then all is good.I plan to release 3.0 when all 3.x issues are resolved.
Comment #9
hn0852 commented@osman
Thx, it's working now
Comment #10
hn0852 commented