Skip to content

autoload-visible should not trigger injection for page elements above visible page top #939

Closed
@gyst

Description

@gyst

doTrigger = reltop <= $scrollable.innerHeight();

Scenario: I have a document with 100 previews, each of which has a trigger: autoload-visible. It also has a comment sentinel with a page fragment url that takes me directly to the bottom of the page. Jumping to the bottom of the page should only trigger the injection of the last page preview image; pages 2-99 do not need to be loaded since they are in "flyover country".

As a complication, when I then move away from this page via injection, this does not work, or rather it waits for a long time for all the 98 spurious preview injections to complete, before I can navigate away.

References:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions