Hi,
I know the topic title’s a bit… Just wanted to know if the “not updated in 2 years” is just due to the fact that there are no updates needed and the plugin is actually functioning great as is.
Cheers,
John
]]>Does the plugin auto creates the _minify folder to store minified js/css in?
]]>Hey, I am using W3 Total cache plugin already. Can both these plugins run smoothly together?
]]>I installed Dependency minification, and all the references to font locations are broken, so none of the icon font I’m using on the server are loading correctly. See here:
Also, is there any way to control what scripts get combined together? I see some admin-only scripts being combined with web-only scripts, and I’d like more flexibility over how they get combined. Is there documentation anywhere I could look at?
]]>Hi! Is it possible to minify all (or selected) JS scripts in header and put links, to minified version of the scripts, to the footer instead of the header?
]]>One of the minified CSS file shows W3C validation error.
https://validator.w3.org validation results showing only one error in https://www.colorwhistle.com
Below are the details.Please help me to fix.
Validation Output: 1 Error
Error Line 591, Column 199: Element link is missing required attribute property.
…d9bd3b5dda.41cae1b34b51a76e2633c7fda2892c91.css’ type=’text/css’ media=’all’ />
Attributes for element link:
Global attributes
href
crossorigin
rel
media
hreflang
type
sizes
Also, the title attribute has special semantics on this element.
I am having an issue with a particular theme included script breaking when minified, this is supposed to handle switching the menu to the mobile version and right now it does not work and no items are displayed. I used the code you mentioned somewhere in another support thread to try and exclude by source (as I am not sure of the handle) and it does not work, can you see if I am doing something wrong here?
This is what I placed into my functions.php
function _exlude_themejs_from_depmin( $is_excluded, $handle, $src ) {
if ( 'https://thesovereigninvestor.com/wp-content/themes/newsroom13-new/js/jquery.theme.js' === $src ) { // not sure what handle is used, can also check $src
$is_excluded = true;
}
return $is_excluded;
}
add_filter( 'dependency_minification_excluded', '_exlude_themejs_from_depmin' , 10, 3);
Site is thesovereigninvestor.com.
Thank you.
]]>Hi, I do not understand why this happens. Upon first installing it, everything seemed to work fine, but after some browsing a few plugins/scripts started to break. Loading a couple of particular ones on the homepage makes everything work or break several things, yet when not loaded I can refresh a few times or navigate and come back and the scripts will be properly loaded. I would like to use this plugin, but how am I supposed to get it to work consistently?
Thanks.
]]>For some reason the plugin is generating a path that is missing the /
at the start of the path for the concatenated files. As such, no styles or js load since the generate URL does not exist.
The plugin generates this path:
https://testwp.localhost_minify/.......
whereas there should be a /
in front of the _minify
like so:
https://testwp.localhost/_minify/.....
Am I missing something super obvious here, or is this a bug?
Details:
WP 4.1
WAMP 2.2 (Apache 2.2.22 / PHP 5.3.13)
Thanks!
]]>It appears that even after ‘minification’ occurs (I can see compression information for various assets and that no assets are in a pending state the assets are still to-be-minified on the site) things are still not being delivered in a minified format.
Furthermore, some assets do not have the correct link being sent out:
<link rel='stylesheet' id='minified-5-css' href='https://www.example.local_minify/jquery-ui-autocomplete.1cc2eae98d66555a23f25a2535d31c50.a8cf63fecab3eb3edf6760bc02f258a6.css' type='text/css' media='all' />
Note that the href has https://www.example.local_minify/etc and should read https://www.example.local/_minify/etc
Some other interesting tidbits that may/may-not be related:
— in view source (hits home page)
<!--
DEPENDENCY MINIFICATION
Scheduled immediate single event (via wp-cron) to minify the following:
- 01. /wp-includes/css/dashicons.min.css
- 02. /wp-includes/css/admin-bar.min.css
- 03. https://www.example.local/wp-content/plugins/special-recent-posts/assets/css/css-front.css
- 04. https://www.example.local/wp-content/plugins/example/css/admin_bar.css
- 05. https://www.example.local/wp-content/plugins/wordpress-seo/css/adminbar.css
- 06. https://www.example.local/wp-content/plugins/flexslider-hg/css/flexslider.css
- 07. https://www.example.local/wp-content/themes/exampleParentTheme/css/vehicle-styles/honda.css
-->
<!--
DEPENDENCY MINIFICATION
Scheduled immediate single event (via wp-cron) to minify the following:
- 01. https://www.example.local/wp-content/themes/exampleParentTheme/includes/css/odometer-theme-train-station.css
- 02. https://www.example.local/wp-content/themes/exampleParentTheme/includes/css/bootstrap3.min.css
- 03. https://www.example.local/wp-content/themes/exampleParentTheme/includes/js/jcarousel/skins/plain/skin.css
- 04. https://www.example.local/wp-content/themes/examplechildTheme/css/style.css
- 05. https://www.example.local/wp-content/themes/exampleParentTheme/css/print.css
- 06. https://www.example.local/wp-content/themes/exampleParentTheme/includes/js/fancybox/source/jquery.fancybox.css
- 07. https://www.example.local/wp-content/themes/exampleParentTheme/includes/css/jquery.sidr.dark.css
-->
<br />
<b>Warning</b>: Illegal string offset 'expires' in <b>E:\Bitbucket\example\example-core\child-inspire\wp-content\plugins\dependency-minification\dependency-minification.php</b> on line <b>611</b><br />
<!--
DEPENDENCY MINIFICATION
Scheduled immediate single event (via wp-cron) to minify the following:
- 01. https://www.example.local/wp-content/themes/exampleParentTheme/includes/respond/static/respond.proxy.gif
- 02. https://www.example.local/wp-content/themes/exampleParentTheme/includes/respond/respond-proxy.html
-->
— in Admin -> Tools -> Dep. Minification
Warning: array_merge(): Argument #1 is not an array in E:\Bitbucket\example\example-core\example-site\wp-content\plugins\dependency-minification\dependency-minification.php on line 320
Warning: array_merge(): Argument #1 is not an array in E:\Bitbucket\example\example-core\example-site\wp-content\plugins\dependency-minification\dependency-minification.php on line 320
Warning: array_merge(): Argument #1 is not an array in E:\Bitbucket\example\example-core\example-site\wp-content\plugins\dependency-minification\dependency-minification.php on line 320
Warning: extract() expects parameter 1 to be array, null given in E:\Bitbucket\example\example-core\example-site\wp-content\plugins\dependency-minification\dependency-minification.php on line 372
]]>First of all, thanks for a great plugin, works very well out of the box (albeit with some scripts needing to be excluded, but that is to be expected with this sort of thing).
I have found that when running this plugin alongside the All In One Event Calendar by Timely (AI1EC), that the calendars JS functionality breaks if it is processed by Dependency Minification.
I believe it is due to the way AI1EC loads it’s javascript.
The easy fix was to simply exclude any file source matching “ai1ec” by using the filter provided by this plugin, ‘dependency_minification_excluded’, so thanks for that.
For anyone who runs into the same issue, below is the code in use on my site (yes the regex is a bit greedy, but it works):
/**
* Exclude AIO Calendar JS from Minification and Aggregation by Depenendcies Minification
*/
function yourtheme_exclude_nextgen_from_depmin( $is_excluded, $handle, $src ) {
if ( preg_match( '/.*ai1ec.*/', $src ) ) {
$is_excluded = true;
}
return $is_excluded;
}
add_filter( 'dependency_minification_excluded', 'yourtheme_exclude_nextgen_from_depmin' , 10, 3);
]]>
when i install Dependency Minification
i have response times arround 6 sec. (pageload 6.56)
if i switch the plugin off
i have response time below 1 sec. (pageload 923ms)
how is that to explain and is it better to forget the performance grade?
]]>Hello Weston,
First off… thank you so much for building such a simple and useful tool! WOW. This plugin had a HUGE positive impact on our load time and we were oh so close to being able to use it.
It looks like we are mighty close to being able to impliment it, there just seems to be a small conflict in our NextGen Gallery & T(-) Countdown scripts somewhere that messes up the loading on the T(-) Countdown widget on any page with a gallery on it.
Is there any way to easily remove the scripts and/or style sheets that are called in the Dependency Minification workflow?
Please Advise!
Cheers
Seth
When will you update this to be made fully compatible with the latest version of WordPress?
]]>I appreciate the work on this plugin as it appears to be one of the few that doesn’t break pages on our site. We have tried W3 and others which have done just that.
With the amount of plugins our site uses we have a ton of requests and it appears many of them are external. Looking at the DM dashboard about 40-50 scripts don’t combine and I am assuming is because they are external. I see the line in the DM description that reads, “By default excludes external scripts from being concatenated and minified, but they can be opted in via the dependency_minification_excluded filter.” I have commented this filter out but I’m guessing that is not the correct thing to do here as many of the scripts are still showing N/A for compression.
Can you help with this and/or let me know another way to further concatenate our files?
Thank you,
Jon
Hello,
I’ve just installed your plugin and the settings screen seems to show all the dependencies but shows the number of files and N/A for Compression and Pending for Last Modified and Expires. and has been like that for about 6 hours since installation. I’ve tried a bulk expire and bulk purge but nothing seems to change.
I have Woocommerce installed and would really like your plugin to work on my site.
Kind regards
Guy
It has completely destroyed my forums. Oh, and by the way, thanks for having such a great support page and contact info so easily accessed on your site.
]]>Site: demo.modularbase(dot)com
Both parent and child CSS are enqued through functions.php. The plugin minifies the child CSS twice, and does not minify the parent CSS.
(mbsimplicity theme is child of modularbase theme – parent CSS called by @import in child CSS)
/*! This minified dependency bundle includes:
* 01. https://demo.modularbase.com/wp-content/themes/mbsimplicity/style.css
* 02. https://demo.modularbase.com/wp-content/themes/mbsimplicity/style.css
*/
When performing tests on page tests for “Website Speed and Performance Optimization” on sites such as GTmetrix (gtmetrix(dot)com), it shows the parent CSS not being minified.
]]>I have a plugin that does not like to be minified. Is there a way to avoid minifying this plugin? thanks
]]>Is it possible and/or advised to use this plugin in combination with a caching plugin (like fa W3 Total cache)? Can this cause any troubles? Is it still an advantage?
]]>Last issue I came across(this might be related to my end of stick;-)
I have added such code to functions.php
function a13_minfy($opts){
var_dump('fancyString',$opts);
$opts = array_merge($opts, array('disable_if_wp_debug' => false));
return $opts;
}
add_filter( 'dependency_minification_options', 'a13_minfy');
I added even var_dump cause I couldn’t find out why it is not making any difference(still it didn’t fire).
Am I doing something wrong?
Plugin started to work when I did change in its code in 'disable_if_wp_debug' => false
or when I switched off WP_DEBUG.
I wonder what is going on here:-)
With regards.
]]>I don’t know is this is connected with my server or some other wordpress settings but plugin doesn’t rewrite URLs in CSS
You can see it here here
For example when using plugin you can’t see magnifying glass in search form.
If you need I will give you access to my test site.
Hope that helps.
With regards.
]]>When I hit under each Dependency Purge or Expire it does nothing. When I will do bulk action on all Dependencies then it pretends it is working.
It pretends cause all Dependencies are removed, but when they are recreated, they are made from old files, like they were never removed.
How to show this?
1. In https://demo4.csshover.pl/wordpress/wp-content/themes/twentythirteen/js/functions.js I have added
alert('shouldn\'t be here');
2. Activated plugin
3. Commented out alert by //alert('shouldn\'t be here');
4. Used Purge on all Dependencies
5. After few refreshes I could see alert message once again.
You can see it here https://demo4.csshover.pl/layout-center-2/
If you need I will give you access to my test site.
Hope that helps.
With regards.
]]>Hello guys!
I tested lot of plugins for minification and this is the best. Its invisible work is just great! Just great!
I am builidng theme right now and I want to recommend this plugin with it.
I have few issues with it, and I will describe it in separate topics.
I noticed that plugin have issue with new default wordpress theme, mainly with google font style which is added by
wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null );
and this function produce URL with such line
$fonts_url = add_query_arg( $query_args, "//fonts.googleapis.com/css" );
I have commented this out from my test page for now but you can see it on fresh WP install with plugin. It will report something like:
Request for https://demo4.csshover.pl//fonts.googleapis.com/css?family=Source+Sans+Pro%3A300%2C400%2C700%2C300italic%2C400italic%2C700italic%7CBitter%3A400%2C700&subset=latin%2Clatin-ext returned with HTTP 404 Not Found Try again
Hope it helps.
With regards.
]]>Hi,
Just installed your plugin but a couple of images are appearing as broken.
The code for the images use JS, JQuery and the CSS is created within the the js code as follows:
if(!has_filmstrip) {
//Add navigation buttons
$('<img />').addClass('nav-next').attr('src',img_path+opts.nav_theme+'/next.png').appendTo(j_gallery).css({
'position':'absolute',
'zIndex':'1100',
'cursor':'pointer',
'top':((opts.panel_height-22)/2)+'px',
'right':'10px',
'display':'none'
}).click(showNextItem);
$('<img />').addClass('nav-prev').attr('src',img_path+opts.nav_theme+'/prev.png').appendTo(j_gallery).css({
'position':'absolute',
'zIndex':'1100',
'cursor':'pointer',
'top':((opts.panel_height-22)/2)+'px',
'left':'10px',
'display':'none'
}).click(showPrevItem);
$('<img />').addClass('nav-overlay').attr('src',img_path+opts.nav_theme+'/panel-nav-next.png').appendTo(j_gallery).css({
'position':'absolute',
'zIndex':'1099',
'top':((opts.panel_height-22)/2)-10+'px',
'right':'0',
'display':'none'
});
$('<img />').addClass('nav-overlay').attr('src',img_path+opts.nav_theme+'/panel-nav-prev.png').appendTo(j_gallery).css({
'position':'absolute',
'zIndex':'1099',
'top':((opts.panel_height-22)/2)-10+'px',
'left':'0',
'display':'none'
});
The next.png and prev.png appear as broken images and when you inspect the element:
<img class="nav-next" src="undefinedlight/next.png" style="position: absolute; cursor: pointer; top: 344px; right: 58px;">
and
<img class="nav-prev" src="undefinedlight/prev.png" style="position: absolute; cursor: pointer; top: 344px; left: 58px;">
So the CSS is not being translated correctly by the plugin.
When I de-activate the plugin I get the correct CSS for these images:
<img class="nav-prev" src="https://www.mysite.com/wp-content/themes/hybrid-theme/library/js/themes/light/prev.png" style="position: absolute; cursor: pointer; top: 344px; left: 58px;">
<img class="nav-next" src="https://www.mysite.com/wp-content/themes/hybrid-theme/library/js/themes/light/next.png" style="position: absolute; cursor: pointer; top: 344px; right: 58px;">
Please can you provide a fix for this asap. Otherwise I cannot use your excellent plugin.
Many Thanks
Indy
If testing should show no issues, I would like to combine JS and CSS into single groups.
From browsing through, I don’t think 0.9.2 has this code, but am I missing something?
]]>Hi, thanks for this gr8 plugin!!! But unfortunately it is not working with WooCommerce ?? Can you extend plugin, so I’ve the possibility to disable JavaScript minifies for WooCommerce?
]]>Thanks for the great plugin.. There are folks like me I am sure that really appreciate it..
Am getting this error on a number of script instances.
Any assistance greatly appreciated.
JSMin: Unterminated RegExp at byte 230500: /g,”%2D%2D”)+ Try again
]]>