Skip to content

Commit

Permalink
Update vidcount.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Lispum authored Feb 24, 2017
1 parent 9786828 commit 1a5eb33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vidcount.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,7 @@ function ytvidcount() {
ytvidcount();


//YouTube uses SPF (spfjs - github.com/youtube/spfjs) which is their own HTML5 History API library that reloads only the changing parts of a webpage, because of the way our payload works it must be called everytime any change of location happens - a spf reload
window.addEventListener("spfdone", ytvidcount);
//YouTube uses SPF (spfjs - github.com/youtube/spfjs) which is their own HTML5 History API library
//it reloads only the changed parts of a website
//because of the way our payload works it must be called everytime any change of location happens - a spf reload
window.addEventListener("spfdone", ytvidcount);

0 comments on commit 1a5eb33

Please sign in to comment.