Needs review
Project:
Shadowbox
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2015 at 16:21 UTC
Updated:
25 Mar 2015 at 16:30 UTC
Jump to comment: Most recent
In certain situation there's huge gap between page is loaded(behaviors ran) and shadowbox starts function.
Mostly it happens on pages with lot of media content, easy way to reproduce is to add images with broken links on page.
Normally shadowbox listens to DOMContentLoaded event to add listeners for processed links. However, it seems that running Shadowbox.init inside behavior is too late: though event is not yet triggered, listeners are not executed and shadowbox loads only on window.load event.
Attached patch provides new setting, that allows to load shadowbox inside behavior right after setup.
| Comment | File | Size | Author |
|---|---|---|---|
| shadowbox-immediate_load.patch | 1.7 KB | temoor |
Comments
Comment #1
temoor commented