From d8bd1807f9756dc5f60767be4891f2dfb7de663d Mon Sep 17 00:00:00 2001 From: "Scott Huang(ZhiLiang)" Date: Sun, 1 Nov 2020 19:40:39 +0800 Subject: [PATCH] Use CDN version to avoid impact China site // Use CDN version to avoid impact China site. It also work for worldwide 'https://cdn.bootcss.com/font-awesome/5.3.1/css/all.css', --- src/GridView.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/GridView.php b/src/GridView.php index de55deda..accc7e87 100644 --- a/src/GridView.php +++ b/src/GridView.php @@ -1710,7 +1710,9 @@ protected function initExport() 'cssFile' => $this->isBs4() ? [ 'https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css', - 'https://use.fontawesome.com/releases/v5.3.1/css/all.css', + //'https://use.fontawesome.com/releases/v5.3.1/css/all.css', + // Use CDN version to avoid impact China site. It also work for worldwide + 'https://cdn.bootcss.com/font-awesome/5.3.1/css/all.css', ] : ['https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'], ],