Loading Google Adsense significantly reduces page display speed.
The following methods will improve the expectation of problem resolution and should be tried.
Remove Script tag in Google Adsense code.
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8085372009702943"
crossorigin="anonymous"></script>
<!-- フッター -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-8085372009702943"
data-ad-slot="2683573049"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Delete the following part of the above code.
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8085372009702943"
crossorigin="anonymous"></script>
</script>
Code after Script tag deletion.
<!-- フッター -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-8085372009702943"
data-ad-slot="2683573049"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Install code for LazyLoad.
Introducing the following code will cause a delayed loading at the timing of scrolling.
Place the following code just before /body.
<script>
//<![CDATA[
//lazy load ads
var lazyloadads = false;
window.addEventListener("scroll", function() {
if ((document.documentElement.scrollTop != 0 && lazyloadads === false) || (document.body.scrollTop != 0 && lazyloadads === false)) {
(function() {
var ad = document.createElement('script');
ad.type = 'text/javascript';
ad.async = true;
ad.src = 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
var sc = document.getElementsByTagName('script')[0];
sc.parentNode.insertBefore(ad, sc);
})();
lazyloadads = true;
}
}, true)
//]]>
</script>
These are simple methods and we encourage you to try them.
Code Web Without Plugin
The one you write in wp-config.php for now.
define( 'WP_DEBUG', false ); ini_set('display_errors','Off'); define('ALLOW_UNFILTERED_UPLOADS', true); define('WP_MEMORY_LIMIT', '100000000000000000000M'); define( 'WPMS_ON', true );
Continue readingCode Web Without Plugin Woocommerce Wordpress
I want to assign ‘parent’ and ‘child’ to attributes in Woocommerce!How to enable without plug-ins.
Have you ever wished you could create ‘parents’ and ‘children’ for Woocommerce ‘attributes’, like categories? This function used to exist but has disappeared after version upgrades. To make it available in the current version, please add the following code to...
Continue readingPlant
Obregonia denegrii.
One genus and one species of cactus, so majestic and dignified is its appearance that it is known as the ‘TEIKAN’. This is a very rare cactus and one of the most popular cacti, partly because of its beautiful rosette...
Continue readingPlant
Aztekium ritteri
1. Habitat2. Description3. Farming Habitat Usually grows on vertical limestone cliffs. It is endemic to two remote small areas in the Nuevo León region of north-eastern Mexico. It is endangered in its habitat due to illegal collection and natural erosion...
Continue readingCode Web Without Plugin Wordpress
Without plugins!How to implement SEO features.|WordPress
Learn how to introduce policy features in WordPress without using a plugin. Plug-in non-use has various advantages, such as reducing server load and maintaining site display speed. There are many diverse plugins for WordPress, and for SEO, there are excellent...
Continue readingPlugin Web Woocommerce Wordpress
Plug-in for exporting and importing CSV WordPress user information.
Use the plugin ‘Import and export users and customers’. Recommended for users who simply want to download user information in CSV format. We have tried several, but so far this plugin is the simplest to use.
Continue readingCode Web Without Plugin Wordpress
Small fonts on WordPress backend post pages!How to change font size.
Are the fonts on WordPress back-end post pages too small? In such cases, this is. If you write all this down, you can customise the font size and other aspects of the posting page (text) as you wish. Please add...
Continue readingCode
How to unzip a zip file in the server.
Assume the file you want to unzip is ‘example.zip’. 1. 1:Upload the zip file you want to unzip.2. 2:Creating and uploading unzip.php.3. 2:Access unzip.php.4. 3:Deployment of zip.5. 4:Finish. 1:Upload the zip file you want to unzip. Upload the zip file...
Continue readingCode Web Without Plugin Woocommerce Wordpress
Without Plugin!How to display just any item on the Woocommerce My Account page.
The items on the Woocommerce My Account page vary depending on the products handled and the site they are on. For example, if you want to hide the ‘Dashboard’ and ‘Downloads’ items, you can achieve this by doing the following....
Continue readingSpeed Web
Image compression web tool to accelerate website display speed.
There are several ways to improve the display speed of a website, the first effective way is to optimise the size of images. In such cases, it is recommended to use the following image compression web tools. The advantage is...
Continue reading