From 37ebe0732c411bee812852e80294bd36d75cd76c Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 22 Apr 2014 15:05:06 +0200 Subject: [PATCH] skip transitions in notes window for better main window performance --- plugin/notes/notes.html | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html index 9e9dfb5b..e4880750 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 );