yii2-netdisk/assets/TSParticlesAsset.php
Chenx221 90eac27dae
优化首页动态视觉加载性能
(改成cdn加速,可能对中国大陆用户不太友好?)
2024-06-14 16:05:29 +08:00

13 lines
295 B
PHP

<?php
namespace app\assets;
use yii\web\AssetBundle;
class TSParticlesAsset extends AssetBundle
{
//use remote js file instead of local file (for better performance?)
public $js = [
'https://cdn.jsdelivr.net/npm/@tsparticles/slim@3.4.0/tsparticles.slim.bundle.min.js'
];
}