aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes/notes.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-22 15:05:06 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-22 15:05:06 +0200
commit37ebe0732c411bee812852e80294bd36d75cd76c (patch)
tree1b4b03722c398b8f4b367bbb5a8379d10a160c59 /plugin/notes/notes.html
parentf396b9b8714fdcc191a66967a8d34b187ae8944a (diff)
downloadfreenode-live-2017-presentation-37ebe0732c411bee812852e80294bd36d75cd76c.tar
freenode-live-2017-presentation-37ebe0732c411bee812852e80294bd36d75cd76c.tar.gz
skip transitions in notes window for better main window performance
Diffstat (limited to 'plugin/notes/notes.html')
-rw-r--r--plugin/notes/notes.html14
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 );