Skip to content

Commit

Permalink
Stats: Use only defer for script tag (#17974)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraftbj authored Dec 7, 2020
1 parent cfa9dfe commit 54b3f54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ function stats_render_footer( $data ) {
$data_stats_array = stats_array( $data );

$stats_footer = <<<END
<script type='text/javascript' src='{$script}' async='async' defer='defer'></script>
<script type='text/javascript'>
<script src='{$script}' defer></script>
<script>
_stq = window._stq || [];
_stq.push([ 'view', {{$data_stats_array}} ]);
_stq.push([ 'clickTrackerInit', '{$data['blog']}', '{$data['post']}' ]);
Expand Down

0 comments on commit 54b3f54

Please sign in to comment.