Solusi Blogspot Untuk Speed Leverage browser caching

Solusi Blogspot Untuk Speed Leverage browser caching - halo sobat gee, apa kabarnya nih, hari ini gee mau sharing tutorial mengatasi masalah speed untuk performance web

Solusi Blogspot Untuk Speed Leverage browser caching - halo sobat gee, apa kabarnya nih, hari ini gee mau sharing tutorial mengatasi masalah speed untuk performance web, terkadang saat kita manambahkan resource atau sumber kode external seperti misal kita akan menambahkan jquery dari ajax.googleapis.com mengalami masalah pada performace web terutama speed atau kecepatan loading website, beberapa tutorial menyarankan untuk menambahkan syntax async pada sumber source contoh :
Solusi Blogspot Untuk Speed Leverage browser caching

<script async src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"> </script>

namun terkadang hal tersebut tidak menjadi solusi, masalah muncul lagi ketika kita mau menambahkan sumber untuk file css, katakan saja file css font-awesome dan ini bermasalah untuk speed, kali ini gee mau kasih solusi yang sudah dicoba dan berhasil mempengaruhi skor di https://developers.google.com/speed/pagespeed/insights/ dengan cara membuat fungsi untuk load sumber external saat user mengakses blogspot kita.

<script>
function loadjscssfile(filename, filetype){
        if (filetype=="js"){ //if filename is a external JavaScript file
            var fileref=document.createElement('script')
            fileref.setAttribute("type","text/javascript")
   fileref.setAttribute("async","async")
            fileref.setAttribute("src", filename)
        }
        else if (filetype=="css"){ //if filename is an external CSS file
            var fileref=document.createElement("link")
            fileref.setAttribute("rel", "stylesheet")
            fileref.setAttribute("type", "text/css")
            fileref.setAttribute("href", filename)
        }
        if (typeof fileref!="undefined")
            document.getElementsByTagName("head")[0].appendChild(fileref)
    }
loadjscssfile("https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js", "js");
</script>

keterangan dari syntax diatas adalah fungsi untuk meload data / kode external yang akan di tampilkan di kode sebelum
oh ya jangan lupa untuk menambahkan kode diatas sebelum kode ya. terima kasih, sampai jumpa di posting selanjutnya. kalau masih bingung komentar aja ya mudah mudahan bisa direspon secepatnya.

COMMENTS

BLOGGER: 2
  1. "oh ya jangan lupa untuk menambahkan kode diatas sebelum kode ya"
    kode di atas di letakan dimana mksdnya gan...

    BalasHapus

Nama

AMP,3,BLOGGER,11,CSS,19,FREE TEMPLATE,1,GRATIS,1,HEADLINE,4,HTML,1,JQUERY,9,MARKETING,11,OPINI,69,PEMROGRAMAN WEB,41,PERFORMANCE WEB,4,PHP,9,SEO,9,SOCIAL MEDIA OPTIMIZATION,8,TIPS DAN TRIK,48,
ltr
item
Gee Web Studio - Tutorial, Share Web & Mobile: Solusi Blogspot Untuk Speed Leverage browser caching
Solusi Blogspot Untuk Speed Leverage browser caching
Solusi Blogspot Untuk Speed Leverage browser caching - halo sobat gee, apa kabarnya nih, hari ini gee mau sharing tutorial mengatasi masalah speed untuk performance web
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSNoBQR03lilGagzXHL4h0K0_DLtk3GiElF0Ew0dugRBKhA1O3Lbd9bGhH7IpDISvNOFXtym5WXc5tD0LL3SNUmuxBiFA6u196Ygt6rIoOTJErL57xovdctgHA5NK4psitIhSQfWy87Yv4/s1600/Leverage-browser-caching2.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSNoBQR03lilGagzXHL4h0K0_DLtk3GiElF0Ew0dugRBKhA1O3Lbd9bGhH7IpDISvNOFXtym5WXc5tD0LL3SNUmuxBiFA6u196Ygt6rIoOTJErL57xovdctgHA5NK4psitIhSQfWy87Yv4/s72-c/Leverage-browser-caching2.jpg
Gee Web Studio - Tutorial, Share Web & Mobile
https://www.gee.web.id/2016/11/solusi-blogspot-untuk-speed-leverage.html
https://www.gee.web.id/
https://www.gee.web.id/
https://www.gee.web.id/2016/11/solusi-blogspot-untuk-speed-leverage.html
true
77827092934645996
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content