Skip to content

Commit 37ebe07

Browse files
committed
skip transitions in notes window for better main window performance
1 parent f396b9b commit 37ebe07

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

plugin/notes/notes.html

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -252,25 +252,17 @@ <h4 class="label">Notes</h4>
252252
*/
253253
function setupIframes( data ) {
254254

255-
var currentParams = [
255+
var params = [
256256
'receiver',
257257
'progress=false',
258258
'history=false',
259-
'postMessageEvents=true'
260-
].join( '&' );
261-
262-
var upcomingParams = [
263-
'receiver',
264-
'progress=false',
265-
'history=false',
266-
'controls=false',
267259
'transition=none',
268260
'backgroundTransition=none'
269261
].join( '&' );
270262

271263
var hash = '#/' + data.state.indexh + '/' + data.state.indexv;
272-
var currentURL = data.url + '?' + currentParams + hash;
273-
var upcomingURL = data.url + '?' + upcomingParams + hash;
264+
var currentURL = data.url + '?' + params + '&postMessageEvents=true' + hash;
265+
var upcomingURL = data.url + '?' + params + '&controls=false' + hash;
274266

275267
currentSlide = document.createElement( 'iframe' );
276268
currentSlide.setAttribute( 'width', 1280 );

0 commit comments

Comments
 (0)