Fix videos not being prefetched properly by prefetch button. #2601
This commit is contained in:
parent
dd4efa6bca
commit
2516a61233
@ -73,6 +73,7 @@ ImageLoader =
|
|||||||
return
|
return
|
||||||
|
|
||||||
el = $.el if isImage then 'img' else 'video'
|
el = $.el if isImage then 'img' else 'video'
|
||||||
|
el.preload = 'auto' if isVideo
|
||||||
if replace and isImage
|
if replace and isImage
|
||||||
$.on el, 'load', ->
|
$.on el, 'load', ->
|
||||||
clone.file.thumb.src = url for clone in post.clones
|
clone.file.thumb.src = url for clone in post.clones
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user