is There a way to remove latency from buttons ?

Posted in: Newspaper
Post count: 312

is There a way to remove latency from buttons ?

I mean when I visit my site through my main menu, pages load fast. But When I visit my site thanks to buttons from my home page, there is a heavy latency, it’s checking ssl secure conenxion then pages load..

Thank you

Kind regards

Post count: 35449

Hi,

Please make sure that all the settings are like in our requirements, please follow the guide carefully
https://forum.tagdiv.com/requirements-for-newspaper/
and please increase all requirements that are lower, and follow all steps.

If there is still a problem, please provide me a link where I can check this latency.

Thank you!

Post count: 312

OK thank, I followed your advices https://forum.tagdiv.com/how-to-make-the-site-faster/

1. Enabling Gzip compression
2. Set the Leverage Browser Caching

It works but now I am following this tutorial https://speedrak.com/blog/how-to-move-javascripts-to-the-footer-in-wordpress/
I just have a question, I added this code `// Custom Scripting to Move JavaScript from the Head to the Footer
function remove_head_scripts() {
remove_action(‘wp_head’, ‘wp_print_scripts’);
remove_action(‘wp_head’, ‘wp_print_head_scripts’, 9);
remove_action(‘wp_head’, ‘wp_enqueue_scripts’, 1);

add_action(‘wp_footer’, ‘wp_print_scripts’, 5);
add_action(‘wp_footer’, ‘wp_enqueue_scripts’, 5);
add_action(‘wp_footer’, ‘wp_print_head_scripts’, 5);
}
add_action( ‘wp_enqueue_scripts’, ‘remove_head_scripts’ );

// END Custom Scripting to Move JavaScript`

in functions.php, but I have a child theme. Do I have to put this code in functions.php of my Child Theme ? or in Newspaper theme functions.php ? or Both ?

Thank you

  • This reply was modified 6 years by gumball44.
  • This reply was modified 6 years by gumball44.
Post count: 35449

Hi,

If you are using the child theme, then please set the code in the functions from the child, in this way you’ll not lost you code when you’ll make a theme update.

Thank you!

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