Skip to content

Commit

Permalink
Account for case where all elements are rerendered
Browse files Browse the repository at this point in the history
This commit accounts for an edge case where Postpone would not
correctly load elemnts when they had scrolled into view. Specifically,
it takes care of the case when a set of already postponed elements are
completely re-rendered by an application. Re-rendering a page with the
same content may result in completely equivalent markup to the markup
that existed before, but from a browser's point of view, the DOM nodes
represented by those sets of markup are not identical. Postpone was
treating these nodes as identical, so if your Backbone app re-rendered a
bunch of still un-loaded images, Postpone would be unable to load them.
  • Loading branch information
squat committed Apr 26, 2014
1 parent 96a3969 commit 684883f
Show file tree
Hide file tree
Showing 6 changed files with 357 additions and 361 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "postpone",
"main": "index.js",
"version": "0.6.0",
"version": "0.6.1",
"homepage": "https://github.com/lsvx/postpone",
"authors": [
"Lucas Serven <lserven@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "postpone",
"repo": "lsvx/postpone",
"description": "A polyfill for postponing the loading of media.",
"version": "0.6.0",
"version": "0.6.1",
"keywords": ["postpone", "media", "resource", "priority", "download"],
"dependencies": {},
"development": {},
Expand Down
Loading

0 comments on commit 684883f

Please sign in to comment.