Skip to content

Commit

Permalink
Update README aload size and snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
pazguille committed Jun 15, 2016
1 parent 29d7e54 commit 2d249c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ aload();

$ npm install aload

As standalone just include `aload` function (just 260 bytes) inline into your HTML file:
As standalone just include `aload` function (just 241 bytes) inline into your HTML file:

```html
<script>
function aload(t){"use strict";t=t||window.document.querySelectorAll("[data-aload]"),void 0===t.length&&(t=[t]);var a,e=0,r=t.length;for(e;r>e;e+=1)a=t[e],a["LINK"!==a.tagName?"src":"href"]=a.getAttribute("data-aload"),a.removeAttribute("data-aload");return t}
function aload(t){"use strict";var e="data-aload";return t=t||window.document.querySelectorAll("["+e+"]"),void 0===t.length&&(t=[t]),[].forEach.call(t,function(t){t["LINK"!==t.tagName?"src":"href"]=t.getAttribute(e),t.removeAttribute(e)}),t}
</script>
```

Expand Down

0 comments on commit 2d249c6

Please sign in to comment.