Skip to content
This repository has been archived by the owner on Mar 6, 2019. It is now read-only.

Stop polling the DOM. #3

Open
jashkenas opened this issue Jun 14, 2010 · 1 comment
Open

Stop polling the DOM. #3

jashkenas opened this issue Jun 14, 2010 · 1 comment

Comments

@jashkenas
Copy link
Contributor

At the moment, we have poll the DOM every 100 milliseconds, doing two things: checking to see if the window dimensions have changed, in order to resize the viewer, and checking to see if the viewer DIV has been scrolled down, and we need to load a new page.

The polling could be removed, and the feel of resizing and scrolling correspondingly tightened up, if we can figure out a way to reliably and performantly work with scroll and resize events in a cross-browser fashion.

@jashkenas
Copy link
Contributor Author

On the kill_ie6_support branch, the first of these two things is now done -- we now use CSS absolute positioning hard left and hard right, instead of using javascript to set the width of the viewer.

ashaw referenced this issue in ashaw/document-viewer Oct 12, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant