File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ export async function renderAsciinemaPlayer() {
22 const els = document . querySelectorAll ( '.asciinema-player-container' ) ;
33 if ( ! els . length ) return ;
44
5- const player = await import ( /* webpackChunkName: "asciinema-player" */ 'asciinema-player' ) ;
5+ const [ player ] = await Promise . all ( [
6+ import ( /* webpackChunkName: "asciinema-player" */ 'asciinema-player' ) ,
7+ import ( /* webpackChunkName: "asciinema-player" */ 'asciinema-player/dist/bundle/asciinema-player.css' ) ,
8+ ] ) ;
69
710 for ( const el of els ) {
811 player . create ( el . getAttribute ( 'data-asciinema-player-src' ) , el , {
Original file line number Diff line number Diff line change 1- @import " ../asciinema-player/dist/bundle/asciinema-player.css" ;
2-
31.asciinema-player-container {
42 width : 100% ;
53 height : auto ;
You can’t perform that action at this time.
0 commit comments