에드센스를 통한 블로그를 운영하다 보면, 항상 에드센스 속도에 늪에 빠지게 됩니다. 이번 포스팅 에서는 구글 성능 지표를 낮추는 Adsense의 Lazy Load 를 도입하여 속도를 올리는 방법을 살펴 보겠습니다.
Table of Contents
01. 왜 느려지고 어떻게 개선할 수 있을까요 ?
일반적으로, 블로그를 개설 했을때 구글 페이지 속도는 90이 넘는 점수를 보이게 됩니다. 그러다가, Adsense 를 도입하는 순간 점수가 급격하게 감소하는 것을 경험하게 됩니다.
이를 통해 알수 있는 것은, 에드센스를 불러오는 작업 자체가 느리다는 것을 알 수 있습니다.
그런데, 에드센스는 구글에서 제공해주는 서비스 입니다. 우리가 직접 속도를 개선할 수 없다는 것이죠.
그렇다면, 우리는 어떻게 개선 할 수 있을까요 ?
우리는 이미지에 주로 사용되는, LazyLoad 기술을 이용하여 속도를 줄일 계획 입니다.
[출처] https://web.dev/browser-level-image-lazy-loading/
Lazyload란 사용자가 페이지에 접근할 때, 전체 내용을 준비해서 보여주는 것이 아닌, 사용자의 화면 중심으로 데이터를 로딩 하는 기법 입니다. 이를 통해, 페이지에 접근할때 출력되는 광고를 사용자의 화면 중심으로 보이게 할 수 있습니다. 이를 통해서, 사용자 관점에서 성능을 높일 수 있습니다.
02. Adsense.js 개선 적용 방법
본 방식은 워드프레스 + AD Inserter 을 병행해서 사용 하는 방법 입니다.
(01) AD Inserter 에서 광고 코드 중 상단의 Pub 코드를 제거 합니다.
[기존]
[변경]
(02) [설정] -> [Footer] 에 아래 코드를 추가 합니다.
<script type='text/javascript'>
//<![CDATA[
var lazyadsense2=!1;window.addEventListener("scroll",function(){if(0!=document.documentElement.scrollTop&&!1===lazyadsense2||0!=document.body.scrollTop&&!1===lazyadsense2){var e,a;(e=document.createElement("script")).setAttribute("data-ad-client","ca-pub-xxxxxxxxxxxxxxxxx"),e.async=!0,e.src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",(a=document.getElementsByTagName("script")[0]).parentNode.insertBefore(e,a),lazyadsense2=!0}},!0);
//]]>
</script>
[출처] https://www.techyleaf.in/2021/08/lazyload-adsense-in-blogger.html
이렇게 하면 설정 완료 되었습니다.
03. 성능 비교
[도입 전]
[도입 후]
확실한 성능 효과 차이가 발생 됨을 알수 있습니다.
(접근성 점수가 달라졌는데, 이는 제가 테스트 후 이미지를 날려먹어서 ^^.. 스킨이 변경 되어 그렇습니다. )
hey there and thank you for your info – I have definitely picked up something new from right
here. I did however expertise several technical issues using this site, since I experienced to reload the site a lot of
times previous to I could get it to load properly. I had been wondering if your web
hosting is OK? Not that I am complaining, but slow loading instances
times will often affect your placement in google and can damage
your high quality score if ads and marketing with Adwords.
Well I am adding this RSS to my e-mail and can look out for much more
of your respective fascinating content. Make sure you update this
again very soon.. Escape roomy lista
You have observed very interesting details! ps decent web site..
child porn
I was able to find good information from your blog articles.
En sevdiğim slot oyunu Big Bass Bonanza, her spin büyük bir heyecan ve kazanç sağlıyor.
SALJU777 SITUS RESMI GAME ONLINE TERBAIK 2024 | LINK GACOR MUDAH MENANG
Futbol bahislerinde doğru tahminlerle büyük ödüller kazanmak çok heyecan verici!
Hi there! This blog post could not be written any better! Looking through this post reminds me of my previous roommate! He constantly kept preaching about this. I’ll send this post to him. Fairly certain he’s going to have a very good read. Thanks for sharing!
Bu casino’daki slot oyunları ile büyük kazançlar elde ediyorum, şansımı her zaman deniyorum.
Bahis siteleri deneme bonusu ile oyuna başlamak çok eğlenceli ve kazançlı!
Oh my goodness! Amazing article dude! Many thanks, However I am experiencing issues with your RSS. I don’t understand why I cannot join it. Is there anybody else getting the same RSS problems? Anyone who knows the solution can you kindly respond? Thanks!!
Greetings! Very helpful advice within this article! It is the little changes that will make the largest changes. Thanks for sharing!
bookmarked!!, I really like your site!
Way cool! Some very valid points! I appreciate you writing this post and also the rest of the website is really good.
Write more, thats all I ave tto say. Literally, iit seems
aas thouygh yyou reelied on the video tto maske yoiur point.
You definitely kow hat yooure talking about, whyy waste your intelligence onn jusst
postikng viodeos tto youyr blog when yyou couldd be giving us somethikng informative tto read?
Good day! I just would like to offer you a huge thumbs up for your great information you have got here on this post. I’ll be coming back to your site for more soon.
After looking into a number of the articles on your website, I honestly appreciate your way of blogging. I bookmarked it to my bookmark website list and will be checking back in the near future. Please visit my web site too and let me know your opinion.
It’s nearly impossible to find knowledgeable people on this topic, but you sound like you know what you’re talking about! Thanks
Bahis siteleri deneme bonusu ile bedava bahis yaparak kazanmaya başlamak harika bir deneyim!
Bu casino’daki jackpot slot oyunları büyük ödüller sunuyor, herkes denemeli.
Casino’nun sunduğu düşük bahis seçenekleri, her bütçeye uygun oyun fırsatları sağlıyor.
There’s definately a great deal to find out about this issue. I like all the points you made.
Having read this I thought it was very enlightening. I appreciate you spending some time and energy to put this content together. I once again find myself personally spending a lot of time both reading and commenting. But so what, it was still worth it.
Casino’nun sunduğu bonuslar bahislerime ekstra şans katıyor, bu harika!
Yüksek bahislerle futbol bahislerinde her zaman devasa ödüller kazanıyorum!
Spot on with this write-up, I really think this site needs a great deal more attention. I’ll probably be returning to read through more, thanks for the information!
Düşük bahislerle oynadığım futbol maçlarında bile büyük kazanç fırsatları yakalıyorum!
The next time I read a blog, I hope that it doesn’t disappoint me as much as this particular one. I mean, Yes, it was my choice to read, but I genuinely thought you’d have something helpful to talk about. All I hear is a bunch of whining about something you could possibly fix if you weren’t too busy seeking attention.
I was able to find good information from your content.
Everything is very open with a precise clarification of the challenges. It was definitely informative. Your site is very useful. Thank you for sharing.
En sevdiğim slot oyunu Thunderstruck II, büyük kazançlar elde ediyorum.
Bahis sitelerinde deneme bonusu ile ilk bahislerimde hiç para kaybetmeden kazandım!
Yüksek bahislerle Sweet Bonanza slotunda büyük ödüller kazanmak çok heyecan verici!
I love reading through a post that will make men and women think. Also, thank you for allowing for me to comment.
Düşük bahislerle oynayarak Fire Joker’ta büyük kazançlar elde ettim!
Casino’nun sunduğu canlı bahis fırsatları futbol maçlarında ekstra heyecan ve kazanç sağlıyor.
Casino’nun sunduğu bonuslar ile slot oyunlarında daha uzun süre oynayıp daha fazla kazanıyorum.
Bu bahis sitesinin sunduğu deneme bonusu ile bedava Aviator oynayarak büyük ödüller kazandım!
Bu casino’da slot oynarken her zaman büyük kazançlar elde ediyorum.
Yüksek bahislerle oynadığımda Fire Joker bana devasa kazançlar getirdi!
Deneme bonusu sayesinde risk almadan kazanç elde etmek mümkün!
An outstanding share! I’ve just forwarded this onto a colleague who had been doing a little homework on this. And he in fact ordered me dinner because I stumbled upon it for him… lol. So allow me to reword this…. Thanks for the meal!! But yeah, thanks for spending time to discuss this matter here on your site.
Excellent blog you have here.. It’s difficult to find excellent writing like yours nowadays. I truly appreciate individuals like you! Take care!!
This excellent website truly has all of the info I wanted concerning this subject and didn’t know who to ask.
You made some really good points there. I checked on the internet to learn more about the issue and found most individuals will go along with your views on this site.
Next time I read a blog, Hopefully it doesn’t fail me just as much as this particular one. I mean, Yes, it was my choice to read, but I really thought you’d have something useful to talk about. All I hear is a bunch of complaining about something you could possibly fix if you weren’t too busy searching for attention.
You need to take part in a contest for one of the best websites on the net. I most certainly will highly recommend this web site!
En sevdiğim slot oyunu Reactoonz, grafikler harika ve kazançlar büyük!
Aw, this was a very good post. Taking a few minutes and actual effort to generate a top notch article… but what can I say… I procrastinate a whole lot and don’t seem to get anything done.
I juset lke the valluable infortmation you providde iin your articles.
I’ll bookmark your log and test agvain ere frequently.
I’m slighttly certain I will be infvormed a loot of neww stguff rigvht here!
Best off lck forr tthe next!
Greetings! Very helpful advice in this particular post! It’s the little changes that make the most important changes. Thanks a lot for sharing!
Casino’nun sunduğu bonuslar bahislerime ekstra şans katıyor, bu harika!
I blog often and I genuinely appreciate your information. This article has really peaked my interest. I’m going to take a note of your website and keep checking for new information about once per week. I subscribed to your Feed too.
Casino’nun sunduğu turnuvalar ile ekstra kazançlar kazanmak çok eğlenceli.
Casino’nun sunduğu bonuslar ile slot oyunlarında büyük kazançlar elde ettim!
En sevdiğim slot oyunu Reactoonz, grafikler harika ve kazançlar büyük!
Bu casino’nun sunduğu slot turnuvaları sayesinde kazançlarım sürekli artıyor.
Casino’daki slot oyunlarının grafikleri mükemmel bir oyun deneyimi sunuyor.
There’s defijately a lot too fiund ouut avout this issue.
I like alll of thee points you’ve made.
After exploring a few of the blog articles on your website, I honestly like your technique of blogging. I saved it to my bookmark webpage list and will be checking back soon. Please check out my website as well and let me know your opinion.
This page certainly has all the info I needed concerning this subject and didn’t know who to ask.
That is a really good tip especially to those fresh to the blogosphere. Brief but very precise info… Many thanks for sharing this one. A must read article!
Next time I read a blog, Hopefully it won’t fail me just as much as this one. I mean, I know it was my choice to read, however I genuinely believed you would probably have something interesting to talk about. All I hear is a bunch of whining about something that you can fix if you were not too busy seeking attention.
Having read this I thought it was really enlightening. I appreciate you taking the time and energy to put this article together. I once again find myself spending way too much time both reading and leaving comments. But so what, it was still worth it.
Hi, I do think this is an excellent site. I stumbledupon it 😉 I may return yet again since I saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to guide other people.
When I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and now every time a comment is added I get four emails with the exact same comment. Is there a means you are able to remove me from that service? Thanks.
Good post. I learn something new and challenging on websites I stumbleupon everyday. It’s always useful to read content from other writers and practice something from other sites.
Right here is the right web site for anyone who wants to find out about this topic. You understand so much its almost hard to argue with you (not that I really would want to…HaHa). You certainly put a fresh spin on a subject which has been written about for many years. Great stuff, just wonderful.
I needed to thank you for this wonderful read!! I absolutely loved every little bit of it. I’ve got you book-marked to check out new stuff you post…
That is a very good tip especially to those fresh to the blogosphere. Brief but very precise info… Many thanks for sharing this one. A must read post!
Howdy! I simply wish to offer you a huge thumbs up for your great information you have here on this post. I am returning to your website for more soon.
You made some decent points there. I checked on the net for more info about the issue and found most individuals will go along with your views on this web site.
Way cool! Some very valid points! I appreciate you writing this article plus the rest of the site is extremely good.
You’re so cool! I don’t think I’ve read a single thing like this before. So nice to find somebody with some unique thoughts on this subject. Really.. thanks for starting this up. This site is one thing that is required on the web, someone with some originality.
Greetings! Very useful advice within this article! It is the little changes that will make the greatest changes. Thanks a lot for sharing!
I’ve been surfing on-line greatr than thrdee hours these days, yyet I never found anyy interesting article likke
yours. It’s lovely price sufficient for me. In my view, if
alll wweb owners and bloggers made excellnt content material aas you
did, thee net will liiely be mucdh mor helpful thhan ever before.
Spot on with this write-up, I absolutely believe that this web site needs far more attention. I’ll probably be returning to read more, thanks for the advice!
I used to be able to find good info from your blog posts.
Düşük bahislerle futbol bahislerinde bile harika kazançlar elde ettim!
Very nice blog post. I absolutely love this site. Stick with it!
I wanted to thank you for this good read!! I absolutely loved every bit of it. I have you book marked to check out new stuff you post…
Bu casino’da slot oynarken her zaman şansım açık, kazanmak çok kolay.
Her gün slot oyunlarında büyük jackpot kazançları elde ediyorum.
Düşük bahislerle uzun süre oynayarak Reactoonz’ta harika kazançlar elde ettim!
Good post. I learn something new and challenging on sites I stumbleupon on a daily basis. It’s always exciting to read through content from other writers and use something from their sites.
Casino’nun sunduğu promosyonlar sayesinde slot oyunlarında daha uzun süre oynayabiliyorum.
Introducing to you the most prestigious online entertainment address today. Visit now to experience now!
Hi, I do believe this is a great blog. I stumbledupon it 😉 I may come back once again since I book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.
Casino’nun sunduğu canlı bahis fırsatları, futbol maçlarını izlerken ekstra heyecan ve kazanç sağlıyor!
For many years, I have actually battled uncertain blood glucose swings that left me feeling drained and tired.
But given that incorporating Sugar my power degrees
are now steady and consistent, and I no longer hit a wall in the afternoons.
I appreciate that it’s a mild, all-natural approach that doesn’t come with any kind of unpleasant negative effects.
It’s genuinely transformed my life.
Hello there! I just would like to offer you a big thumbs up for your excellent info you’ve got right here on this post. I will be returning to your site for more soon.
Introducing to you the most prestigious online entertainment address today. Visit now to experience now!
Introducing to you the most prestigious online entertainment address today. Visit now to experience now!
Introducing to you the most prestigious online entertainment address today. Visit now to experience now!
Introducing to you the most prestigious online entertainment address today. Visit now to experience now!
Pretty! This has been an incredibly wonderful article. Thanks for providing these details.
Good article. I will be dealing with a few of these issues as well..
You need to take part in a contest for one of the greatest websites on the web. I am going to recommend this web site!
I need to to thank you for this wonderful read!! I definitely loved every little bit of it. I’ve got you bookmarked to check out new stuff you post…
Howdy! I could have sworn I’ve been to this site before but after browsing through a few of the articles I realized it’s new to me. Anyhow, I’m certainly delighted I found it and I’ll be bookmarking it and checking back frequently!