It doesn't works for me because of invalid 'options' JS file receives from php.

Js receives:
loadInvisible: 0
offset: '100'

but it works with:
loadInvisible: false
offset: 100

To fix it I've changed 2 lines in lazy.module file (56, 57) from:
'loadInvisible' => $config->get('loadInvisible'),
'offset' => $config->get('offset'),

to:
'loadInvisible' => boolval($config->get('loadInvisible')),
'offset' => intval($config->get('offset')),

I have no time to make commit so it's up to module maintainer

CommentFileSizeAuthor
#3 invalid_js_options-2996603-3.patch1.5 KBosman

Comments

webtitan created an issue. See original summary.

webtitan’s picture

Issue summary: View changes
osman’s picture

StatusFileSize
new1.5 KB

Thanks for reporting. Attached patch should have a better coverage.

osman’s picture

Status: Active » Needs review
keshavv’s picture

Status: Needs review » Reviewed & tested by the community

Working fine.

  • osman committed c4be3ce on 8.x-1.x
    Issue #2996603 by osman: Invalid JS options
    
osman’s picture

Status: Reviewed & tested by the community » Fixed

Fixed in 8.x-1.1 release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.