에드센스를 통한 블로그를 운영하다 보면, 항상 에드센스 속도에 늪에 빠지게 됩니다. 이번 포스팅 에서는 구글 성능 지표를 낮추는 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.