Title: JavaScript to Footer
Author: Vladimir Prelovac
Published: <strong>2008 年 12 月 2 日</strong>
Last modified: 2014 年 12 月 22 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/footer-javascript/assets/icon-128x128.png?rev=1051418)

# JavaScript to Footer

 作者：[Vladimir Prelovac](https://profiles.wordpress.org/freediver/)

[下载](https://downloads.wordpress.org/plugin/footer-javascript.zip)

 * [详情](https://cn.wordpress.org/plugins/footer-javascript/#description)
 * [评价](https://cn.wordpress.org/plugins/footer-javascript/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/footer-javascript/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/footer-javascript/#developers)

 [支持](https://wordpress.org/support/plugin/footer-javascript/)

## 描述

The Yahoo! Exceptional Performance team recommends [placing scripts at the bottom of your page](http://developer.yahoo.com/performance/rules.html#js_bottom)
because of the way browsers download components.

“The problem caused by scripts is that they block parallel downloads. The HTTP/1.1
specification suggests that browsers download no more than two components in parallel
per hostname. If you serve your images from multiple hostnames, you can get more
than two downloads to occur in parallel. While a script is downloading, however,
the browser won’t start any other downloads, even on different hostnames.

In some situations it’s not easy to move scripts to the bottom. If, for example,
the script uses document.write to insert part of the page’s content, it can’t be
moved lower in the page. There might also be scoping issues. In many cases, there
are ways to workaround these situations.”

WordPress default behavior is to load javascript in the page.

This plugin will move all javascript code to the footer if the plugins have [declared javascript properly](http://www.prelovac.com/vladimir/best-practice-for-adding-javascript-code-to-wordpress-plugin).

Plugin by [Vladimir Prelovac](http://www.prelovac.com/vladimir). Looking for [WordPress Services](http://www.prelovac.com/vladimir/services)?

### License

This file is part of Footer JavaScript.

Footer JavaScript is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software Foundation,
either version 3 of the License, or (at your option) any later version.

Footer JavaScript is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Footer
JavaScript. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses/).

## 安装

 1. Upload the whole plugin folder to your /wp-content/plugins/ folder.
 2. Go to the Plugins page and activate the plugin.
 3. Try your blog and check if all plugins work properly. Footer JavaScript may break
    some plugins so check everything first!

## 常见问题

  How do I correctly use this plugin?

Just enable the plugin and check your blog pages. If all plugins appear to be working
correctly you are set!

Additionally you may install YSlow enchancment for Firebug, a popular addon for 
Firefox browser. YSlow will help you determine your site choke points.

  I love your work, are you available for hire?

Yes I am, visit my [WordPress Services](http://www.prelovac.com/vladimir/services)
page to find out more.

## 评价

![](https://secure.gravatar.com/avatar/6af950bf8743f24101b5a118d3ebe08ce02434c03873b695d9388ac9304c3502?
s=60&d=retro&r=g)

### 󠀁[Can’t give perfect result](https://wordpress.org/support/topic/cant-give-perfect-result/)󠁿

 [AB Siddik](https://profiles.wordpress.org/siddiknmh/) 2016 年 9 月 17 日

I used and face some of bad experience with it

![](https://secure.gravatar.com/avatar/356c986fc7b04477aadfbb472042b095d6182b6e99ef37428834e64274d28380?
s=60&d=retro&r=g)

### 󠀁[Works fine](https://wordpress.org/support/topic/works-fine-481/)󠁿

 [Zudwa](https://profiles.wordpress.org/zudwa/) 2016 年 9 月 3 日

Good

![](https://secure.gravatar.com/avatar/dde30eda15839683acf5dea476f9d6fe8c2d1d3b7f5be7392392de0ff6c3f458?
s=60&d=retro&r=g)

### 󠀁[Rubbish](https://wordpress.org/support/topic/rubbish-25/)󠁿

 [convictedvapour](https://profiles.wordpress.org/chronicbubble/) 2016 年 9 月 3
日

This plugin fails to do it’s job and breaks many sites I tetsed with DO NOT USE 
IT!

![](https://secure.gravatar.com/avatar/d88cf0fa8b874250155db0039775ebafeb4a2064efe859a380f2f0eeb6f1814e?
s=60&d=retro&r=g)

### 󠀁[works with latest wordpress](https://wordpress.org/support/topic/works-with-latest-wordpress/)󠁿

 [abrla](https://profiles.wordpress.org/abrla/) 2017 年 2 月 7 日

this plugin works with latest wordpress version and make his job. http://www.abnehmen-
ernaehrung.com use it.

 [ 阅读所有17条评价 ](https://wordpress.org/support/plugin/footer-javascript/reviews/)

## 贡献者及开发者

「JavaScript to Footer」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Vladimir Prelovac ](https://profiles.wordpress.org/freediver/)

[帮助将「JavaScript to Footer」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/footer-javascript)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/footer-javascript/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/footer-javascript/)，或通过[RSS](https://plugins.trac.wordpress.org/log/footer-javascript/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/footer-javascript/)。

## 额外信息

 *  版本 **0.4.1**
 *  最后更新：**11 年前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 2.3 或更高版本 **
 *  已测试的最高版本为 **4.2.39**
 *  语言
 * [English (US)](https://wordpress.org/plugins/footer-javascript/)
 * 标签
 * [footer](https://cn.wordpress.org/plugins/tags/footer/)[javascript](https://cn.wordpress.org/plugins/tags/javascript/)
   [optimization](https://cn.wordpress.org/plugins/tags/optimization/)
 *  [高级视图](https://cn.wordpress.org/plugins/footer-javascript/advanced/)

## 评级

 2.9 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/footer-javascript/reviews/?filter=5)
 *  [  2 条 4 星评价     ](https://wordpress.org/support/plugin/footer-javascript/reviews/?filter=4)
 *  [  2 条 3 星评价     ](https://wordpress.org/support/plugin/footer-javascript/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/footer-javascript/reviews/?filter=2)
 *  [  6 条 1 星评价     ](https://wordpress.org/support/plugin/footer-javascript/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/footer-javascript/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/footer-javascript/reviews/)

## 贡献者

 *   [ Vladimir Prelovac ](https://profiles.wordpress.org/freediver/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/footer-javascript/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.networkforgood.org/donation/MakeDonation.aspx?ORGID2=920155875)