How to Create Google Code for Blogger

Loading cope with the Google Code Blog

K ali I will provide a solution or a solution for you who have problems with loading the blog is pretty heavy. Loading or opening process in a program to be one important factor for the operation of a system. Likewise with loading a blog, if it is too heavy it will make the performance of a blog that we manage to be difficult to develop because visitors would be reduced. A visitor does not want to wait long to see the contents or article to read. They prefer to visit a blog that quickly open process, in addition to more efficient time, may also cost less if they have to pay for the internet connection.

Blog which I discuss here is blogspot, blog platfrom blogger loading speed is only dependent on how much we put script code into the template but with the assumption that the speed of the Internet connection used by the same. Differences with WordPress or other blog platforms that use their own hosting, blog speed also depends on the type and capacity of hosting was wearing. Generally, blogs are usually wear heavy loading templates as is often the kind of magazine I created, because a lot of features that are installed on the homepage. Actually from Google itself also suggested that blog loading faster, at least there are only 9 posts on the homepage. But because of the growing blogger, this blog platform can now be developed so as to resemble the form of professional blogs like other platforms with the consequence that the slow blog loading.

For users of blogger, I will provide a logical solution to improve the performance of the speed of loading the blog, especially for those users of the template style magazine. If you are using a template by using the many features, such as sliders, or other labels per the category of. Must have found a script that long (usually placed above the code </ head>) or a script that has been stored in a storage area on Google Code by the creator of the template.

Javascript is not stored on Google Code

I will give an example of a script, and save them in your own Google code. Consider the example script below I take a simple:
<Script language = 'javascript'>
function Barva (coda)
{
document.getElementById (& quot; vzorec & quot;). bgcolor = coda;
document.hcc.barva.value = koda.toUpperCase ();
document.hcc.barva.select ();
}
BarvaDruga function (coda)
{
document.getElementById (& quot; vzorec2 & quot;). bgcolor = coda;
document.hcc.Barva2.value = koda.toUpperCase ();
document.hcc.Barva2.select ();
}
</ Script>
Note the blue code above, go to notepad and then copy the code into notepad blue. (Blue color only). After that click on save as, the file name with the name the file was terminated .js (eg: contoh.js). And in the Save as type select All files, let the ANSI encoding, as shown below:


After the file storage on computers now we keep on Google Code that can be installed on the template. Go to Google Code you, if you have not used Google Code before, you must first create the following way:
  1. Log in to your Google account, then go to http://code.google.com/hosting/

  2. After that click Create a new project as shown above, after the contents of the new window appears empty box like the example image below.


    You need to consider is the filling Version control system and source code lisence, you have to fill in as the example picture above. For other columns can be filled up to you. After that click Create Project.
  3. You now have an account on Google Code, the next step is to store the javascript code that has been made over at Google Code. Heading into the tab 'Download' and click New download. Then click Browse and select the file you want to upload javascript. Fill in the information relating to the javascript file and then click Submit file.

  4. Javascript files you've uploaded to Google code. Now we just call him and puts them in your template. Click the file that had been uploaded, after that it will open a new window. To get the direct link of the file you uploaded. Right-click on the file name and select copy link location (firefox) or copy the link address (Chrome) as shown below.

  5. Now how to put the direct link to the template? Note the two pictures below:

    Before being stored at Google code

    After stored at Google code

    Note the blue block code on the second image above, and the picture above is not summarized in the figure below code has been summarized and stored in a Google Code repository to be like this:
    <Script src = "http://kauman.googlecode.com/files/contoh.js" type = "text / javascript" />
    Code script above is a summary of the code sample script code length top and red is the direct link file that we upload on Google Code at step number 4 above.
Javascript is already stored on Google Code

Well now what if a javascript file is already stored in the Google Code belongs to another account? I will give an example below:
<Script src = 'http://jamu-martin.googlecode.com/files/related-martin.js' type = 'text / javascript' />
Javascript URLs in red above should be replaced with the URL of your script from Google Code. Do I copy the URL into your browser as shown below:


Then press Enter on the keyboard. If the save option appears, you just save the file and then upload to your Google Code as step number 3 above. But if after press enter javascript code appearing in rows many deh anyway, copy the code into notepad and save it as in the picture at the top of this article. After it was uploaded to Google Code as the steps above. Then enter or change the color red on the javascript URL above with the URL or the direct link from google code that you have uploaded.

How could the store javascript in a Google Code repository itself can alleviate blog loading? Explanation like this, if you use a template by using a lot of scripts that are stored on Google Code by the creator of the template, you must not only using the template, for sure there are other users using the same template. If a second blog using the same template loading at the same time will definitely feel the weight, if only two or three does not wear too feels that the template was not much heavier loading what? In addition, to keep watch at any time if the creator of the script template is damaged or overloaded.

That was one of tips to speed up your blog loading the save file Javascript in your own Google Code, please understand and hopefully useful.


Print This Page

Comments