【发布时间】:2015-01-09 23:19:11
【问题描述】:
那里有很多 CSS 框架,这可能也适用于 js,但我将使用 twitter bootstrap 作为示例。
是否建议编译将在您的网站上托管的自定义版本的框架(例如使用 sass)
或
使用框架 cdn 和小型主题样式表来覆盖您网站上托管的默认样式?
例如
<!-- bootstrap cdn -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<!-- custom theme -->
<link rel="stylesheet" href="mysite/css/custom-bootstrap-theme.min.css">
或
<!-- custom boostrap -->
<link rel="stylesheet" href="mysite/css/custom-bootstrap.min.css">
【问题讨论】:
标签: performance twitter-bootstrap cdn pagespeed