Linux 软件免费装

Debug Bar List Script & Style Dependencies

开发者 PerS
jrf
更新时间 2016年12月13日 04:11
捐献地址: 去捐款
PHP版本: 3.4 及以上
WordPress版本: 4.7
版权: GPLv2 or later

标签

debug script development styles debug bar wp_enqueue_script wp_enqueue_style dependencies

下载

0.2.0 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2

详情介绍:

We all know that when we're add a script or style to WordPress, we should use wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer ) and wp_enqueue_style( $handle, $src, $deps, $ver, $media ) as in: ` function themeslug_enqueue_style() { wp_enqueue_style( 'core', 'style.css', array('twentytwelve-style') ); } function themeslug_enqueue_script() { wp_enqueue_script( 'my-js', 'filename.js', array('jquery') ); } add_action( 'wp_enqueue_scripts', 'themeslug_enqueue_style' ); add_action( 'wp_enqueue_scripts', 'themeslug_enqueue_script' ) ` $deps (dependencies), the handle name and an optional parameter, lets you control when/where your script or style should be added. If $deps is array('jquery'), your script will be loaded after jquery is loaded. The problem is, which one exists and in which order are they loaded ? Debug Bar List Script & Style Dependencies, an add-on to Debug Bar, will list the dependencies. Use To view the loaded scripts and styles Note, the front-end and back-end loads different scripts and styles. Also, different pages on the front-end and back-end can load different scripts and styles.

安装:

  1. Copy the 'debug-bar-list-dependencies' folder into your plugins folder
  2. Activate the plugin via the Plugins admin page

屏幕截图:

  • Front-end dependencies
  • Back-end dependencies

更新日志:

1.1.2 1.1.1 1.1 1.0.6 1.0.5 1.0.4. 1.0.3 1.0.2 1.0.1 1.0