Don't preload embeds by default
This commit is contained in:
parent
49409881d1
commit
e5aa5833fd
@ -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('&');
|
||||
}
|
||||
|
@ -6,7 +6,8 @@ class BareAsciicastPagePresenter
|
||||
decorated_asciicast = asciicast.decorate
|
||||
|
||||
playback_options = {
|
||||
'theme' => decorated_asciicast.theme_name
|
||||
'theme' => decorated_asciicast.theme_name,
|
||||
'preload' => false
|
||||
}.merge(playback_options)
|
||||
|
||||
new(decorated_asciicast, EmbedPlaybackOptions.new(playback_options))
|
||||
|
Loading…
Reference in New Issue
Block a user