Improvements to the script loader: allows plugins to queue scripts for the front end head and footer, adds hooks for server side caching of compressed scripts, adds support for ENFORCE_GZIP constant (deflate is used by default since it's faster), see #8628, fixes #8884
git-svn-id: http://svn.automattic.com/wordpress/trunk@10442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3395,7 +3395,7 @@ function screen_icon($name = '') {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test support for compressed JavaScript and CSS
|
||||
* Test support for compressing JavaScript from PHP
|
||||
*
|
||||
* Outputs JavaScript that tests if compression from PHP works as expected
|
||||
* and sets an option with the result. Has no effect when the current user
|
||||
@@ -3406,7 +3406,7 @@ function screen_icon($name = '') {
|
||||
*/
|
||||
function compression_test() {
|
||||
?>
|
||||
<script type="text/javascript" src="load-scripts.php?test=1"></script>
|
||||
<script type="text/javascript" src="load-scripts.php?test=1<?php echo ( defined('ENFORCE_GZIP') && ENFORCE_GZIP ) ? '&c=gzip' : ''; ?>"></script>
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
(function() {
|
||||
|
||||
Reference in New Issue
Block a user