跳到内容

Performance Optimization: Order Styles and Javascript

v1.0

Satya Prakash · 2010年8月11日 上架

Ordering StyleSheet and JavaScript (external and inline) for performance optimization.

正在使用
70+
评分
5.0 / 5
累计下载
1.4 万
最近更新
2013年10月11日
6 条评价需要 WordPress 2.0.2+已测试到 3.6.1

贡献者

Did you ever read about Optimization of website/blog through ordering styles and Scripts in head section?
If you like your website load in browser as quickly as possible then you may have read in performance optimization tips that
you should move all CSS files on top and script at last in HTML head section <head></head>.

How do you order those calls? If you are manually putting CSS and JavaScript files in head section (<head></head>),
then you can do this very easily. Just modify once and optimization for this is over.
What if you are using plugins and that are adding calls to JavaScript and CSS files dynamically. This is case of WordPress blog,
where we use many plugins and those plugins add various Styles and Script files dynamically from wp_head() call.

If above lines, do not makes much sense to you then probably you have not
read this documentation on Google.

The plugin will also collect different inline scripts to one place. Thus making the source code
look better.

To check, if the plugin is doing anything or not, compare the Head section before and after
activating the plugin.

(For reading more details discussion, follow the Plugin link on right side.)

Author (satya61229) About page on WP

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums