Colin Kells
Forum Replies Created
-
The exclude scripts are shown on the plugin site.
Have a read of this there is a plugin by Peter Shaw here
https://me.wordpress.org/plugins/lh-script-ids/
The pluggin is old and not updated, but it worked for me yesterday.
Install the plugin then on the page you are working on view page source you the Style and Script name, this is required for the exclude scripts.
Note uninstall of the plugin leaves all the ids and script names.
Cheers
Closing
The page I need help with:
http:/www.peaksaplenty.com/wp-admin/admin.php?page=adswaliupdatesHi
I’m having similar problems with AliDropshiping Woo Pluging doing product updates. And Woozone plugin is very slow with SG Optimizer running.
Disable it and all is fine.I’m still looking for a solution I suspect js, css or scripts need to be excluded.
Cheers thank you
Plugin update to 7.3.9 today has reset the icon images to the original size, as I expected. GTMetrix showing messages again.
I have a folder copy of my modified icons, so I am transferring these to the plugin folder.
I’d suggest installing the Snippet plugin that’s how I’ve done mime.
Exactly as I have it
add_filter( ‘sgo_javascript_combine_excluded_inline_content’, ‘js_combine_exclude_inline_script’ );
function js_combine_exclude_inline_script( $exclude_list ) {
$exclude_list[] = ‘theChampSiteUrl’;return $exclude_list;
}Hi @rphrus
This code and others can be found on the plugin SG Optimizer – View Details – Description – Plugin Compatibility Section.
This also tells you to insert the code in your functions.php file.An easier way is to install the Snippets plugin, add a Snippet then paste the code into the new Snippet. Save and Activate.
Snippets also allow you to Deactive / Activate and edit when you require.Found the code I added does bring the load time down but also turns Sharing and Like off.
Rather than use a plugin that is very slow loading and requires additional code to overcome issues, I’ve decided to try other plugins.
The very first plugin I’ve tried works correctly without the need for additional code.
Loading times now
Using GTMetrix
Total Loaded Time Total Page Size Requests
1.6sec 776MB 48There is NO additional loading as features get activated.
Have not heard from support?
So for me, this post is finished, closed, and resolved.Have found it.
The following works
add_filter( ‘sgo_javascript_combine_excluded_inline_content’, ‘js_combine_exclude_inline_script’ );
function js_combine_exclude_inline_script( $exclude_list ) {
$exclude_list[] = ‘theChampSiteUrl’;return $exclude_list;
}Resolved
Tried this from “Combine Javascript Files (Cannot Exclude JS FIle)” post
add_filter( ‘sgo_js_combine_exclude’, ‘js_combine_exclude’ );
function js_combine_exclude( $exclude_list ) {
// Add the style handle to exclude list.
$exclude_list[] = ‘theChampSiteUrl’ ;return $exclude_list;
}Does not work.
Where can I access the filter you mention “sgo_javascript_combine_excluded_inline_content” filter
Cheers Colin
I have this issue, however when I enter the URL to exclude them
/wp-content/uploads/siteground-optimizer-assets/ SGO is not finding any min.js files, so I can not exclude URLs.
How are the URLs entered to make the exclude work?Checking the folder there are five files.
the_champ_ss_general_scripts.mim.js
the_champ_sl_common.mim.js
the_champ_fb_sdk.mim.js
the_champ_fb_commenting.mim.js
the_champ_share_counts.mim.jsIf I disable sgo_javascript_combine, the issue is fixed, but this not the ideal solution.
Cheers Colin