Don't preload embeds by default

This commit is contained in:
Marcin Kulik 2016-04-21 16:44:43 +02:00
parent 49409881d1
commit e5aa5833fd
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@
} }
} }
var options = ['size', 'speed', 'autoplay', 'loop', 'theme', 't']; var options = ['size', 'speed', 'autoplay', 'loop', 'theme', 't', 'preload'];
return '?' + options.map(format).filter(Boolean).join('&'); return '?' + options.map(format).filter(Boolean).join('&');
} }

View File

@ -6,7 +6,8 @@ class BareAsciicastPagePresenter
decorated_asciicast = asciicast.decorate decorated_asciicast = asciicast.decorate
playback_options = { playback_options = {
'theme' => decorated_asciicast.theme_name 'theme' => decorated_asciicast.theme_name,
'preload' => false
}.merge(playback_options) }.merge(playback_options)
new(decorated_asciicast, EmbedPlaybackOptions.new(playback_options)) new(decorated_asciicast, EmbedPlaybackOptions.new(playback_options))