Bring jQuery from Google

Bring jQuery from Google

Because of the traffic, the images and flash files were moved to another server and connected.

JQuery finds the following source while surfing and connects to Google

Modified File: Theme/Functions.php

[PHP]
//Making jQuery Google API
function modify_jquery()
{
if (!is_admin())
{
// comment out the next two lines to load the local copy of jQuery
WP_DEREGITER_Script ('jQuery');
WP_REGITER_Script (‘jQuery’,
‘Http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js’, false, false,
‘1.4.4’);
wp_enqueue_script ('jQuery');
}
}
Add_act ('init', 'Modify_jQuery');
[/PHP]

Leave a Reply

이메일 주소는 공개되지 않습니다. (* 질문, 건의사항 등은 "질문게시판"을 이용해주세요)