Skip to content

Commit

Permalink
Update documentation and bump versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
squat committed Mar 23, 2014
1 parent 2cd616b commit 96a3969
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ postpone.setThreshold( "200px" ).postpone() // Change the threshold to 200px.

*Note:* it is good practice to chain the `postpone()` method after changing the threshold to make sure postpone reexamines the postponed elements in the document and check if any of them should be loaded.

The postpone polyfill works with audio, embed, iframe, img, image, picture, use, video, and tref elements. *Note:* although the specification for `picture` is still evolving, postpone has basic support for it and is fully compatible with the [pictureTime polyfill](https://github.com/chuckcarpenter/picturetime).
The postpone polyfill works with audio, embed, iframe, img, image, object, picture, use, video, and tref elements. *Note:* although the specification for `picture` is still evolving, postpone has basic support for it and is fully compatible with the [pictureTime polyfill](https://github.com/chuckcarpenter/picturetime).

Postpone works by modyfing the `src` and `xlink:href` attributes of elements and their descendant `source` elements when they become visible.

Expand Down
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.5.0",
"version": "0.6.0",
"homepage": "https://github.com/lsvx/postpone",
"authors": [
"Lucas Serven <[email protected]>"
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.5.0",
"version": "0.6.0",
"keywords": ["postpone", "media", "resource", "priority", "download"],
"dependencies": {},
"development": {},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postpone",
"version": "0.5.0",
"version": "0.6.0",
"description": "A polyfill for postponing the loading of media.",
"main": "index.js",
"directories": {
Expand Down
13 changes: 12 additions & 1 deletion test/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ require.register("postpone/index.js", Function("exports, require, module",
* @property {string} tags - A list of all the tags for which postpone\n\
* will work;\n\
*/\n\
this.tags = \"audio, embed, iframe, img, image, picture, use, video, tref\";\n\
this.tags = \"audio, embed, iframe, img, image, object, picture, use, video, tref\";\n\
/**\n\
* @property {array} elements - An array of all the postponed elements in the document.\n\
*/\n\
Expand Down Expand Up @@ -639,6 +639,17 @@ require.register("postpone/index.js", Function("exports, require, module",
}\n\
}\n\
}\n\
\n\
else if ( el.tagName.toLowerCase() === \"object\" && el.getAttribute( \"data-data\" )) {\n\
el.setAttribute( \"data\", el.getAttribute( \"data-data\" ));\n\
\n\
/**\n\
* This is necessary to make Safari (and, apparently, old versions of Chrome)\n\
* re-render the new content; see:\n\
* stackoverflow.com/questions/11245385/object-works-in-every-browser-except-google-chrome\n\
*/\n\
el.innerHTML = el.innerHTML;\n\
}\n\
\n\
return el;\n\
};\n\
Expand Down

0 comments on commit 96a3969

Please sign in to comment.