Saturday, June 8, 2013

Loading cope with the Google Code Blog


 I will provide a solution or a solution for you who have a problem with loading the blog is quite 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 take a long time to wait 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 internet connection.

Blogs that 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 your own hosting, blog speed also depends on the type and capacity of wearing hosting. Generally, blogs are usually wearing heavy loading template as is often the kind of magazine I created, because a lot of features that are mounted 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 slower loading blog.

For blogger users, I will provide logical solutions to improve the loading speed of blog performance, especially for those users of the template style magazine. If you use a template to use a lot of features, such as sliders, or other labels per categori. Certainly never find a script that long (usually placed above the code </ head> ) or a script that has been stored in the storage Google Code by the creator of the template. 

Javascript is not saved 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 took simple:
<script language='JavaScript'> function










Note the color coded blue above, open notepad and copy the code into notepad blue. (Blue only). Then click save as , the file name is the file name terminated . js (example: contoh.js ). And the Save as typeselect All files , Encoding let on ANSI, as shown below:


After the process of saving the file on your computer now our store on Google Code to 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. Then click Create a new project as shown above, after the new window fill the empty box as example shown below.


    That you need to consider is the filling Version control system and source code lisence , you have to fill like the example image above. For other columns can be filled up to you. Then click the Create project .
  3. You now have an account in Google Code, the next step is to store the javascript code that has been made ​​over at Google Code. Heading to 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 it was just him and puts them in your template. Click on 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 a direct link to the template? Notice the two pictures below:

    Before it is stored in the Google code

    After stored at Google code

    Examine the blue block on the second image above, the image and the image has not been summarized below code has been summarized and stored in a Google Code repository 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 color 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 the javascript file has been stored on the Google Code belongs to another account? I'll give an example below:
<Script src = ' http://jamu-martin.googlecode.com/files/related-martin.js 'type =' text / javascript '/>
Javascript URL color 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 options appear, 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 aplenty deh anyway, copied 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 URL color red in javascript on the URL or the direct link from google code that you have uploaded.

How could the store javascript in 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 are certainly not just use 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 overload.

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

1 comment: