{"id":23347,"date":"2013-05-12T10:08:28","date_gmt":"2013-05-12T10:08:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/debug-bar-list-dependencies\/"},"modified":"2016-12-12T20:11:12","modified_gmt":"2016-12-12T20:11:12","slug":"debug-bar-list-dependencies","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/debug-bar-list-dependencies\/","author":3803,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1.2","tested":"4.7.33","requires":"3.4","requires_php":"","requires_plugins":"","header_name":"Debug Bar List Script & Style Dependencies","header_author":"Per Soderlind","header_description":"","assets_banners_color":"","last_updated":"2016-12-12 20:11:12","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/soderlind.no\/donate\/","header_plugin_uri":"http:\/\/soderlind.no\/debug-bar-list-script-and-style-dependencies\/","header_author_uri":"http:\/\/www.soderlind.no\/","rating":5,"author_block_rating":0,"active_installs":200,"downloads":88321,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"3"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["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"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"711687","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"711687","resolution":"2","location":"assets"}},"screenshots":{"1":"Front-end dependencies","2":"Back-end dependencies"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94,12751,734,23026,21096],"plugin_category":[59],"plugin_contributors":[78237,78884],"plugin_business_model":[],"class_list":["post-23347","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_tags-debug-bar","plugin_tags-development","plugin_tags-wp_enqueue_script","plugin_tags-wp_enqueue_style","plugin_category-utilities-and-tools","plugin_contributors-jrf","plugin_contributors-pers","plugin_committers-jrf","plugin_committers-pers"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/debug-bar-list-dependencies.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/debug-bar-list-dependencies\/assets\/screenshot-1.png?rev=711687","caption":"Front-end dependencies"},{"src":"https:\/\/ps.w.org\/debug-bar-list-dependencies\/assets\/screenshot-2.png?rev=711687","caption":"Back-end dependencies"}],"raw_content":"<!--section=description-->\n<p>We all know that when we're add a script or style to WordPress, we should use <code>wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer )<\/code> and <code>wp_enqueue_style( $handle, $src, $deps, $ver, $media )<\/code> as in:<\/p>\n\n<pre><code>function themeslug_enqueue_style() {\n    wp_enqueue_style( 'core', 'style.css', array('twentytwelve-style') );\n}\n\nfunction themeslug_enqueue_script() {\n    wp_enqueue_script( 'my-js', 'filename.js', array('jquery') );\n}\n\nadd_action( 'wp_enqueue_scripts', 'themeslug_enqueue_style' );\nadd_action( 'wp_enqueue_scripts', 'themeslug_enqueue_script' )\n<\/code><\/pre>\n\n<p>$deps (dependencies), the handle name and an optional parameter, lets you control when\/where your script or style should be added. If $deps is <code>array('jquery')<\/code>, your script will be loaded after jquery is loaded.<\/p>\n\n<p>The problem is, which one exists and in which order are they loaded ?<\/p>\n\n<p>Debug Bar List Script &amp; Style Dependencies, an add-on to <a href=\"https:\/\/wordpress.org\/plugins\/debug-bar\/\">Debug Bar<\/a>, will list the dependencies.<\/p>\n\n<h4>Use<\/h4>\n\n<p>To view the loaded scripts and styles<\/p>\n\n<ul>\n<li>Front-end: Go to the front-end, and on the admin bar choose Debug and view Script &amp; Style Dependencies<\/li>\n<li>Back-end: Go to the back-end, on the admin bar choose Debug and view Script &amp; Style Dependencies<\/li>\n<\/ul>\n\n<p>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.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Copy the 'debug-bar-list-dependencies' folder into your plugins folder<\/li>\n<li>Activate the plugin via the Plugins admin page<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.1.2<\/h4>\n\n<ul>\n<li>Tested &amp; found compatible with WP 4.7.<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Tested &amp; found compatible with WP 4.6.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Minor fix for '&amp;' not being escaped in url's with query vars.<\/li>\n<li>Fixed compatibility with the <a href=\"https:\/\/wordpress.org\/plugins\/plugin-dependencies\/\">Plugin Dependencies<\/a> plugin.<\/li>\n<li>Fixed weird table layout on front-end in combination with Twenty-Sixteen theme.<\/li>\n<li>Fixed a bug where translations would not be loaded as the language file names were not in sync with the used text-domain.<\/li>\n<li>Hard-code the text-domain for better compatibility with <a href=\"https:\/\/translate.wordpress.org\/projects\/wp-plugins\/debug-bar-list-dependencies\">GlotPress<\/a>.<\/li>\n<li>Made loading of text-domain compatible with use of the plugin in the <code>must-use<\/code> plugins directory.<\/li>\n<li>General housekeeping.<\/li>\n<li>Tested &amp; found compatible with WP 4.5.<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>Tested with WordPress 3.9. Bumped version number.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Made text strings translatable, added .pot file and Dutch translation.<\/li>\n<li>Added minified CSS file.<\/li>\n<li>Added total counts at the top of the page.<\/li>\n<\/ul>\n\n<h4>1.0.4.<\/h4>\n\n<ul>\n<li>Added contributor.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>(Partial) Bugfix for <a href=\"https:\/\/github.com\/soderlind\/debug-bar-list-dependencies\/issues\/1\">Help tabs broken and missing scripts<\/a>.<\/li>\n<li>Fix: duplicate script listings.<\/li>\n<li>New!: un-obtrusive script\/style source line.<\/li>\n<li>Some other minor adjustments to compensate for the front-end themes.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Added styling.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Bugfix, fixed listing of styles and their dependencies.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Debug Bar List Script &amp; Style Dependencies is an add-on to WordPress Debug Bar","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23347"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pers"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23347"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23347"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23347"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23347"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23347"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}