Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
⚡️ Web: enable defer on the rating chart
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Nov 12, 2022
1 parent cd92c57 commit 56b81c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/views/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ pub async fn get(

@if !view_model.rating_snapshots.is_empty() {
script src="https://cdn.jsdelivr.net/npm/apexcharts" {}
script {
script defer {
(PreEscaped("
'use strict';
const mode = (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'dark' : 'light';
Expand Down

0 comments on commit 56b81c6

Please sign in to comment.