diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-04-22 15:05:06 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-04-22 15:05:06 +0200 |
commit | 37ebe0732c411bee812852e80294bd36d75cd76c (patch) | |
tree | 1b4b03722c398b8f4b367bbb5a8379d10a160c59 /plugin | |
parent | f396b9b8714fdcc191a66967a8d34b187ae8944a (diff) | |
download | fosdem-2018-presentation-37ebe0732c411bee812852e80294bd36d75cd76c.tar fosdem-2018-presentation-37ebe0732c411bee812852e80294bd36d75cd76c.tar.gz |
skip transitions in notes window for better main window performance
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/notes/notes.html | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 9e9dfb5..e488075 100644 --- a/plugin/notes/notes.html +++ b/plugin/notes/notes.html @@ -252,25 +252,17 @@ */ function setupIframes( data ) { - var currentParams = [ + var params = [ 'receiver', 'progress=false', 'history=false', - 'postMessageEvents=true' - ].join( '&' ); - - var upcomingParams = [ - 'receiver', - 'progress=false', - 'history=false', - 'controls=false', 'transition=none', 'backgroundTransition=none' ].join( '&' ); var hash = '#/' + data.state.indexh + '/' + data.state.indexv; - var currentURL = data.url + '?' + currentParams + hash; - var upcomingURL = data.url + '?' + upcomingParams + hash; + var currentURL = data.url + '?' + params + '&postMessageEvents=true' + hash; + var upcomingURL = data.url + '?' + params + '&controls=false' + hash; currentSlide = document.createElement( 'iframe' ); currentSlide.setAttribute( 'width', 1280 ); |