No search results were found in Documentation!
Hello !
Please note that this requires custom coding which is not covered by the support team, and it is not recommended by our developers to edit or un-minify the code since it can lead to other problems with the theme.
Thank you !
Ok, but I deactived the sticky header in the same js.file and here you didn’t tell me that I have to unminify it before doing that. Is there no way to set the listener to passive? If I would unminify it, which part of the code I should set to passive?
Will you take it into account in the next update? Because it is always reported as a failure.
Greetings Kathrin
Hi, for mobile theme the only js files are those from this file path -> wp-content/plugins/td-composer/mobile/js but those are minify and it is quite hard to edit it, but there are tools on internet and you can unminify the code and then to edit it.
Thank you!
Solved!
It was Fast Velocity Minify plugin that was making problems.
Hi,
Indeed some of that code it is from the theme, unfortunately the only way to remove it is from theme files, most of theme are set using minify css.
Unfortunately even if you remove them from the theme after a theme update the code will be set back.
I know that there were some plugins that can remove un use code to be load in theme, unfortunately I can not remember the name of that plugin.
Thank you for your understanding!
How should I minify my javascript, CSS, and HTML codes?
currently, I am using autoptimize for minification which doesn’t seem to be working according to the gt metrics, Lazy load by wp-rocket for lazy loading of images, the wp super cache for cache, and ithemes security.
I have used the mobile theme from the recent update of theme for the homepage and single post
website:https://hastysurf.com/
How should I minify my javascript, CSS, and HTML codes?
currently, I am using autoptimize for minification which doesn’t seem to be working according to the gt metrics, Lazy load by wp-rocket for lazy loading of images , wp super cache for cache, and ithemes security.
website:https://hastysurf.com/
Hi,
1. For the moment there is a quick fix, but this need to be made in theme files, for this you need to go on wp-content/themes/Newspaper/includes/wp-booster/wp-admin/js/tagdiv-theme-plugins-setup.js and replace the jQuery(window).load(function () { from line 234 -> https://i.imgur.com/agaEJWA.png with jQuery(window).on(“load”, function () { -> https://i.imgur.com/zBFX5Ye.png also you need to do the same on this file wp-content/plugins/td-composer/assets/js/js_files_for_wp_admin.min.js but since this file is minify you can replace the code inside it with this one ->https://pastebin.com/YTiYVfU4
These warnings will be fix for the coming updates!
2. If you are referring to featured image that need to be display when you share a post on social, then you can use our guide from here -> https://forum.tagdiv.com/facebook-share/ use yoast seo.
3. Please follow our tutorial for page speed -> https://tagdiv.com/how-to-increase-page-loading-speed/
Also you can check these similar topics for more solutions: -> https://forum.tagdiv.com/topic/optimize-script-to-improve-site-speed/ -> https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
Thank you!
Hi,
You can use other plugins too, unfortunately for the moment we can provide the settings only for that one.
Please try the options from these topics:
For example you can try the cache plugin indicate on here -> https://forum.tagdiv.com/topic/minify-javascript-and-css-3/
– https://forum.tagdiv.com/topic/a-few-tips-for-newspaper-x-speed-high-cpu-usage-issues/
– https://tagdiv.com/how-to-increase-page-loading-speed/
– https://forum.tagdiv.com/topic/yslow-add-expires-headers/
Let me know the results!
Thank you!
Hey Vlad,
Thankfully, I’ve managed to sort out my First Query. The Front Page is now in accordance with the rest of my pages.
However, the video component is still not showing up right on the mobile version. Here is a link to one of our video articles to check it out:
https://mouthingoffmagazine.com/mouthing-off-artists-spotlight-irene-shoshanne-carlucci/
While I’ve got you here though, there are a few more things I have noticed, that I’m having a difficulty solving.
1) In our contacts page I have placed my volunteering staff’s dedicated email addresses using the social media/mail icon. However, upon clicking the icon (which has the appropriate email attatched to it) it just comes up with a 404 error rather than opening up my mail to send an email.
Here is a link to see what I am talking about: https://mouthingoffmagazine.com/contact/
2) I have created a sidebar that I have placed for our articles. While I have changed the header style of the headers to match our theme, I have been unable to find an option to change the colour of the header to match the headers on our front/home page. (See First Link (Video) to see this sidebar)
3) I have recently minified our CSS, Javascript, HTML, etc. Using the W3 Total Cache. However, since then I have recieved AMP ‘validated URL’s’ erorr’s with the statement ‘Invalid markup removed’ occuring & my Error Index keeps having Invalid inline script errors, however, these always have the markup status of removed.
None of this seems to be causing any issues to the actual site and it appears to be in perfect working order. However, as someone who is quite new to all of this, I’m a little uneasy as whether this is just a small, insignifcant issue that sometimes occurs after minifying or whether this will cause greater issues down the line.
Apologies for all the questions & thank you for all of your help!
Hi guys,
Even if I made the settings you recommended ( https://tagdiv.com/how-to-increase-page-loading-speed/ ), I am interested to get a better score ( https://tools.pingdom.com/#5d2d6670a4400000 https://tools.pingdom.com/#5d2e677c93000000 )
The hosting is very good and has a great performance (tested on other themes).
1. Settings done according to your instructions
WP Super Cache – setup done
Expire Headers – added in .htaccess but pingdom reported they are not added.
Lazy load from Template settings: enabled
CDN: do not need it because my traffic is represented by Romanian users, located in Romania (https://www.infophilic.com/get-almost-100-pagespeed-newspaper-theme/)
2. Expired headers added but reported as not added
There are 8 static components without a far-future expiration date.
https://fonts.googleapis.com/css?family=Open+Sans%3A400%2C600%2C700%2C300%7CRoboto%3A400%2C500%2C700%2C300&display=swap&ver=10.3.6.1
https://www.googletagmanager.com/gtag/js?id=UA-178493727-1
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
https://www.google-analytics.com/analytics.js
https://adservice.google.ca/adsid/integrator.js?domain=www.doctorbro.ro
https://adservice.google.com/adsid/integrator.js?domain=www.doctorbro.ro
https://www.googletagservices.com/activeview/js/current/osd.js?cb=%2Fr20100101
https://pixel.wp.com/g.gif?v=ext&j=1%3A8.9.1&blog=183178774&post=153&tz=0&srv=www.doctorbro.ro&host=www.doctorbro.ro&ref=&fcp=1101&rand=0.647507365239576
Is it recommended to host them locally and add expired headers for them?
3. The gtmetrix tool (waterfall) shows me that there are some .css / .js file requests that takes a lot of time to load: https://gtmetrix.com/reports/www.doctorbro.ro/GBYVzcB1 ( http://prntscr.com/um9djf )
How can I minify the css files? How can I combine javascript files (enable minify javascript files) or delay javascript execution. WP Rocket has these options but unfortunately, I am using the plugin you recommended.
Hi,
The code use to display the temperature is on two files:
wp-content/plugins/td-composer/legacy/common/wp_booster/td_weather.php -> https://i.imgur.com/rGf75ya.png
and this is use on this file too
wp-content/plugins/td-cloud-library/shortcodes/header/tdb_header_weather.php -> https://i.imgur.com/ZM6kwOx.png
The above code is use to display the temperature
On this file are set some links to that api -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_weather.php -> https://i.imgur.com/db8VkY4.png -> https://i.imgur.com/s2uk7GT.png
Also the links for the http://api.openweathermap.org are set in the minify js -> wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js -> https://i.imgur.com/AnY34U8.png
This is all I can do, unfortunately I do not know any method to disable the cache on some elements, sorry!
Thank you!
Hi,
Yes, there is a quick fix for this problem:
Add a fix in theme files, for this you need to go on wp-content/themes/Newspaper/includes/wp-booster/wp-admin/js/tagdiv-theme-plugins-setup.js and replace the jQuery(window).load(function () { from line 234 -> https://i.imgur.com/agaEJWA.png with jQuery(window).on("load", function () { -> https://i.imgur.com/zBFX5Ye.png also you need to do the same on this file wp-content/plugins/td-composer/assets/js/js_files_for_wp_admin.min.js but since this file is minify you can replace the code inside it with this one ->https://pastebin.com/YTiYVfU4
These warnings will be fix for the coming updates!
Make sure that all theme settings are as in our guide ->
– https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.
Also please make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv Composer, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.
Let me know the results!
Thank you!
Hi, if the option form theme panel is disable -> https://www.screencast.com/t/6RDvQZKvTFd then the lazyload from our theme is no longer use, please make sure that you do not use other plugins that has this option.
If you want to make some change to the theme code for lazyload, the file path to the file is wp-content/plugins/td-composer/legacy/Newspaper/js/tagdiv_theme.min.js but the code is minify -> https://i.imgur.com/fYS12Gg.png
Thank you!
Hi shikharagrl,
Yes, there is a quick fix for this problem:
Add a fix in theme files, for this you need to go on wp-content/themes/Newspaper/includes/wp-booster/wp-admin/js/tagdiv-theme-plugins-setup.js and replace the jQuery(window).load(function () { from line 234 -> https://i.imgur.com/agaEJWA.png with jQuery(window).on("load", function () { -> https://i.imgur.com/zBFX5Ye.png also you need to do the same on this file wp-content/plugins/td-composer/assets/js/js_files_for_wp_admin.min.js but since this file is minify you can replace the code inside it with this one ->https://pastebin.com/YTiYVfU4
These warnings will be fix for the coming updates!
Let me know the results!
Thank you!
Hi,
A quick fix, add in theme files the below code, for this you need to go on wp-content/themes/Newspaper/includes/wp-booster/wp-admin/js/tagdiv-theme-plugins-setup.js and replace the jQuery(window).load(function () { from line 234 -> https://i.imgur.com/agaEJWA.png with jQuery(window).on("load", function () { -> https://i.imgur.com/zBFX5Ye.png also you need to do the same on this file wp-content/plugins/td-composer/assets/js/js_files_for_wp_admin.min.js but since this file is minify you can replace the code inside it with this one ->https://pastebin.com/YTiYVfU4
These warnings will be fix for the coming updates!
Let me know the results!
Thank you!
Hi johnu101,
If the problem persists, you can try tow quick fix:
1. Try to use Enable jQuery Migrate Helper and check if tagDiv Composer is working again or not.
2. Add a fix in theme files, for this you need to go on wp-content/themes/Newspaper/includes/wp-booster/wp-admin/js/tagdiv-theme-plugins-setup.js and replace the jQuery(window).load(function () { from line 234 -> https://i.imgur.com/agaEJWA.png with jQuery(window).on(“load”, function () { -> https://i.imgur.com/zBFX5Ye.png also you need to do the same on this file wp-content/plugins/td-composer/assets/js/js_files_for_wp_admin.min.js but since this file is minify you can replace the code inside it with this one ->https://pastebin.com/YTiYVfU4
These warnings will be fix for the coming updates!
Let me know the results!
Thank you!
Hello !
You can try this quick fix:
1. Try to use Enable jQuery Migrate Helper and check if tagDiv Composer is working again or not.
2. Add a fix in theme files, for this you need to go on wp-content/themes/Newspaper/includes/wp-booster/wp-admin/js/tagdiv-theme-plugins-setup.js and replace the jQuery(window).load(function () { from line 234 -> https://i.imgur.com/agaEJWA.png with jQuery(window).on(“load”, function () { -> https://i.imgur.com/zBFX5Ye.png also you need to do the same on this file wp-content/plugins/td-composer/assets/js/js_files_for_wp_admin.min.js but since this file is minify you can replace the code inside it with this one ->https://pastebin.com/YTiYVfU4
These warnings will be fix for the coming updates!
Let me know the results!
Thank you!
how can i minify this ?
Hi Calin,
I solved it using thanks to a utility of this website: svgminify
First of all I used two different SVGs for mobile and desktop … in the second I did a couple of tests, often Chrome and Opera do not display them while Safari does but the logo may appear all black, or on Safari do not load it resulting in the browser development panel as a png (with a very low resolution).
I am not a web developer so forgive if I have written some idiocy, thank you!
Hi,
I think that the plugin provide as example in this topic -> https://forum.tagdiv.com/topic/minify-css-js/#post-362759 can do this, to optimizes the images.
Than you!
Hi,
Unfortunately, we do not tested any plugin for this but most of users use Autoptimize plugin, if you want you can test some of theme and use the one that is working better -> https://crayonify.com/7-best-wordpress-minify-plugins/
Thank you!
Hello !
For that I personally recommend Fast Velocity Minify plugin. It is not an tested plugin but a lot of our users use it and they are very happy about it.
Thank you !
which plugin is best to minify css and js for this theme?
Hi romeoblu26,
You can try tow quick fix:
1. Try to use Enable jQuery Migrate Helper and check if tagDiv Composer is working again or not.
2. Add a fix in theme files, for this you need to go on wp-content/themes/Newspaper/includes/wp-booster/wp-admin/js/tagdiv-theme-plugins-setup.js and replace the jQuery(window).load(function () { from line 234 -> https://i.imgur.com/agaEJWA.png with jQuery(window).on("load", function () { -> https://i.imgur.com/zBFX5Ye.png also you need to do the same on this file wp-content/plugins/td-composer/assets/js/js_files_for_wp_admin.min.js but since this file is minify you can replace the code inside it with this one ->https://pastebin.com/YTiYVfU4
These warnings will be fix for the coming updates!
Let me know the results!
Thank you!