this is why you should let Google to host your jQuery

usually I put the jQuery inside <HEAD> tag like this:

<script type=”text/javascript” src=”jQuery.min.js” ></script>

I found that most of the other script made by other programmer did the same I did. The method above will call the jQuery.min.js which is in the same folder with the script (you host the script). If you’re doing this on a public facing* website, you are doing it wrong. why? Coz you will have to use more resource, more bandwidth, and also more space in your hosting even it don’t use to much space I think you should use Google AJAX Libraries content delivery network to serve jQuery to your users directly from Google’s network of datacenters. By doing this, you got several advantages : decreased latency, increased parallelism, and better caching. So how should we add the jQuery? The very simple way is by using the method below:

<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script>

For more information on method and the reason explanation, you can visit this page:

Encosia.com

Andi Setiawan

Loving husband - Caring Father - Slap bet Commissionaire (I wish) find my complete profile on: http://andisetiawan.com/about-me http://facebook.com/andiim3 - http://gplus.to/andiim3 - http://andiim3.com

Share
Published by
Andi Setiawan

Recent Posts

Dedicated Blog for Dobby and Luna

Dobby and Luna have been part of our lives for the past years. They have…

2 years ago

Demo Site For My Projects

In the year 2021, I've completed some paid projects. Some of them are more technical,…

2 years ago

GlassTime – Glassmorphism WordPress Theme

Based on the GlassTime Bootstrap template, here I present glassmorphism WordPress Theme free to download.This…

3 years ago

GlassTime : Glassmorphism Responsive HTML5 Template

This HTML5 template is using Glassmorphism UI design language which is now trending for 2021…

3 years ago

Daftar Desa, Kecamatan, dan Kode Pos Buleleng – Bali

KecamatanKode POSBanjar81152Buleleng81119Busungbiu81154Gerokgak81155Kubutambahan81172Sawan81171Seririt81153Sukasada81161Tejakula81173Klik pada nama kecamatan untuk melihat daftar desa masing-masing. Sumber: kodepos.andiim3.com

3 years ago

Ninja diganti ADV

Ada yang bilang "semuanya akan mati matic pada akhirnya". Bener aja, sekarang tuntutan transportasi sehari-hari…

4 years ago

This website uses cookies.