php - Yii why should I use registerCssFile() and registerScriptFile()? -


what difference between using registercssfile() , <link rel="stylesheet" ... > ?

what has yii framework done while used registercssfile() improving web site's performance ?

is there benefit seo when using registercssfile() ?

the use of registercssfile() give advanced possibilities:

  • css post-processing - example can combine registered css files 1 , minimize them (see yii extension eclientscript). such post-processing improve loading time of web site.
  • control - can use framework functions include / exclude css files.
  • api modules/extensions - registercssfile() extensions , modules have possibility include/render css files within main layout (your website html).

the mentioned points valid js files registered registerscriptfile().

i can't think of seo benefits when using yii feature though.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -