Speed booster problem

Posted in: Newspaper
Post count: 268

Hi

in loop-single-2.php I added the code

<? Php echo do_shortcode (‘[td_block_ad_box spot_id = "custom_ad_2"]‘); ?>

after

<? Php echo $ td_mod_single-> get_social_sharing_top ();?>

to insert an adsense banner after the title

in this way however seem to stop working the instructions in td-spped-booster.php to move down the css in particular with regard to fonts google

$ This-> move_style_to_footer_queue (‘google_font_open_sans’);
$ This-> move_style_to_footer_queue (‘google_font_roboto’);
$ This-> move_style_to_footer_queue (‘google-fonts-style’);

and speedsite is compromised…

Do You have any suggestions to solve this problem?

Thanks

  • This topic was modified 10 years by Bintmusic.
  • This topic was modified 10 years by Bintmusic.
Post count: 22421

Hi,
This should not impact speedbooster at all. Are you sure that the custom ad 2 shortcode is to blame? Please try to remove the code to see if it really impacts speedbooster. It’s a very unlikely scenario. A simple shortcode should not impact the moving of render-blocks. Maybe you have installed a plugin that interferes with speedbooster. Please follow this topic to learn about speedbooster’s plugin compatibility protection:
https://forum.tagdiv.com/topic/tinymce-advanced-and-other-various-disabling-speed-boster/
Let us know how it goes.
Thank you!

Post count: 268

Hi Bogdan,

Also I think what you say, but really
if I delete the code for adsense,
delete the cache and still do the test with page speed
the problem is gone and Page Speed goes on…

very strange

there is no alternative to put adsense under the title?

thanks

Post count: 22421

Hi,

This is strange indeed, You can try to add your custom ad shortcode in the single_template_2.php file here:
http://screencast.com/t/4zcCtQtx
If this still makes speedbooster stop working, maybe you could try another ad, like a simple image ad instead of adsense to see if there is any code related to the ad that creates this error.
I tested this on my end with the do_shortcode function both in the loop file or the single_template file, but there was no change in pagespeed and speedbooster worked as expected.

Thanks.

Post count: 268

Hi Bogdan

I tried the alternative method that you proposed to me but the problem remains

rather I not have said you something that perhaps will is crucial: under the title I add adsense links that you know how to have a code a little different than traditional adsense banner …

can this be the problem?

thanks

Post count: 268

Hi Bogdan

I may have solved the problem by removing the script

<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>

above the ad link … there being other adsense banner on the page is not necessary to put it on every ad

in this way it seems that speedbooster is ok and speed site does not deteriorate…

yes i know…very strange but that’s how it seems

Thanks anyway

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.