youtube / spfjs

A lightweight JS framework for fast navigation and page updates from YouTube
https://youtube.github.io/spfjs/
MIT License
2.23k stars 147 forks source link

Option to use main window window.history #444

Open tchiotludo opened 6 years ago

tchiotludo commented 6 years ago

I've added an option to use window.history instead of iframe history. This is needed by google tag manager & facebook pixel, they overload some method window.history method in order to track new change. Without this options, these pixel are unusable with spf application

To be honest, I don't understand the reason of using an iframe :smile:

rviscomi commented 6 years ago

I'll defer to @nicksay but I think the iframe was used to get a clean copy of the web APIs that may have been mangled (accidentally or otherwise) in the global scope of the window by other libraries.

zz22zz222 commented 5 years ago

no

undefined123456 commented 1 year ago

hello