Forum Replies Created
-
AuthorPosts
-
October 14, 2014 at 5:06 pm in reply to: Crop does not work on Avatar field if 'Disable AJAX upload' set. #6431notwothesameMember
I’m changing this to resolved, as it’s become a feature request.
It would be really good if, all JS, including inline could be removed by a settings or hook. Some WP devs are ‘professional’ and care about performance and the number of HTTP calls, minification etc.
notwothesameMemberAnother follow-up.
In the latest version the user_meta_scripts filter works perfectly, thanks.
The next problem is: I’m removing all styles and scripts with:
add_filter( 'user_meta_scripts', 'removeUmpScripts' ); function removeUmpScripts( $scripts ) { // remove all CSS and JS from front-end if( ! is_admin() ) { return array(); } return $scripts; }
But there are a number of template files that render-out in-line JS referencing functions in the (missing) JS files. Eg.
generateProField.php, line 17 – I don’t want this multipleSelect() running
generateForm.php, line 223 – I’m not uploading multiple files umFileUploaderAgain, I’ve had to hack the plugin. The preferred behaviour would be to fully remove any in-line JS if the corresponding external scripts are not available.
notwothesameMember<Bump>
It’s been 10 days. Any chance of an update?
notwothesameMemberThanks for the ‘hack’. But of course as soon when I update your plugin this change will be lost.
I can see you’ve got a queueing function for each of the resources and it’s using the standard WP wp_enqueue_style. Now I know all of the handles. I don’t understand is why dequeue’ing your styles/scripts doesn’t work? This would be preferable so I’m not altering the plugin code. Neither of these work with a priority of 99.
wp_dequeue_style( ‘user-meta’ );
wp_deregister_style( ‘user-meta’ );Any idea why?
notwothesameMemberBump. Any chance of a reply?
-
AuthorPosts