Tips Trik Blogger - Kumpulan Tutorial Blogspot, artikel ini adalah beberapa kumpulan tips Blogger dan info dari blog saya bloggerpeer.blogspot.com , meskipun koleksinya belum banyak tapi mudah-mudahan bisa membantu khususnya bagi anda yang sedang belajar membuat blog dengan platform Blogger/Blogspot, sebelumnya saya mohon maaf kalau ada satu atau beberapa tutorial yang mungkin tidak bisa digunakan atau tidak bisa bekerja dengan baik lagi dikarenakan oleh beberapa faktor, tetapi saya akan berusaha untuk meng-edit dan update kembali agar bisa digunakan dan berfungsi lagi
Which Compilation Level is Right for Me?
When first starting with Closure Compiler, it is easy to see the names for the compilation levels and assume that advanced is better than simple. While it is true that advanced optimization generally produces a smaller file, that does not mean it is the best fit for all projects.
What is really the difference?
There are quite a few differences, but the most significant is dead-code elimination. With advanced optimizations the compiler removes any code that it knows you are not using. Perfect! Who would not want that? Turns out a lot of people because the compiler can only correctly eliminate code when you specifically tell it about ALL of the other code used in your project AND ALL of the ways that your code is used by other scripts. Everything should be compiled together at the same time. That is a pretty big gotcha.
Here is a classic example:
<html>
<head>
<title>Advanced Optimization Gotchas</title>
<!-- an external library -->
<script src="jquery-1.7.2.js"></script>
<script>
//This section is compiled
function ChangeBackground() {
$('body').css('background-color', 'pink');
}
//Export for external use
window['ChangeBackground'] = ChangeBackground;
</script>
</head>
<body>
<!-- external use of compiled code -->
<a onclick="ChangeBackground()">Pinkify</a>
</body>
</html>
In this case we have to explicitly tell the compiler about jQuery during compilation with an extern file and we have to tell it that our ChangeBackground function is called from external code. While this is a contrived example, it illustrates a case where it probably was not worth the time to ensure compatibility with the advanced optimization level.
General decision factors
So how do you actually decide which optimization level is right for your project? Below are some of the most common factors in that decision:
Simple Optimizations | Advanced Optimizations |
---|---|
Looking for a replacement JavaScript compressor | Looking for every last byte of savings in delivered code size or in execution time |
Compiling a library where the vast majority of functions are part of the publicly exposed API | Authoring a very large application with multiple modules |
Unwilling to make substantial changes to code style | Starting a new project or are willing to make substantial changes to coding style and patterns |
Using external libraries that do not have existing extern files and are not compatible with advanced optimizations | Wanting the best possible obfuscation of your code to protect intellectual property |
On a tight timeline that does not allow for troubleshooting obscure errors after compilation | Authoring a large library but want to support users who only use a small subset of the code |
Coding style factors
Most of us are proud of our JavaScript. In fact we may have some slick coding patterns that make our code elegant to read and maintain, however, not all JavaScript coding patterns compile equally with Closure Compiler advanced optimizations. If your code contains any of the following (and you are unwilling to change this) then simple optimizations would probably be the best choice for you:
- Mixed property access methods
Closure Compiler treats properties accessed with dotted notation (obj.prop) differently than when accessed via brackets or quoted notation (obj[‘prop’]). In fact it sees them as completely different properties. This item is first on the list for a reason: it is almost always the biggest hurdle. Because of this, the following patterns are all places which can cause problems with advanced optimizations:- Building method names with strings
var name = 'replace';
obj[name] = function() {};
obj[name + 'With'] = function() {};
Obj.replaceWith(); //Mixed access problem - Testing for property existence with strings
obj.prop = 'exists';
if ('prop' in obj) … //Mixed access problem - Using a property name in a loop
obj.prop = function() {};
for (var propName in obj) {
if(propName == 'prop') { //Mixed access problem
}
}
- Building method names with strings
- Using the “this” keyword outside of constructors or prototype methods
var obj = {};
//Static method using “this”
obj.prop = function() { this.newprop = 'exists' };
obj.prop();
alert(obj.newprop);
...In advanced optimizations, Closure Compiler can move and refactor code in unexpected ways. Some of them include functions which are inlined and properties which are collapsed to variables. In many of these cases, it changes which object the “this” keyword references. These cases have workarounds, but without special attention your code will likely not execute as intended. To illustrate, under advanced optimizations the compiler might change the above code to:
var obj = {};
var a = function() { this.newprop = 'exists' };
a();
//Property does not exist - it is defined on the window object
alert(obj.newprop);
Choose wisely
Regardless of the choice between simple or advanced optimizations, you can still use the many compile time code checks and warnings for your code. From a missing semicolon to a misspelled property, the compiler can assist in identifying problems with your code before your users do it for you.
So to recap, advanced is not always better than simple. Modifying an existing code base to be compatible with Closure Compiler advanced optimizations can be a daunting challenge, and it definitely is not the best choice for every project.
Posted by Chad Killingsworth, Closure Compiler committer
.EDU Backlink | Cara Mendapatkan Backlink Dofollow Gratis
Backlink .EDU sekarang ini masih menjadi incaran bagi para blogger untuk menaikkan ranking situs/blog mereka, tapi kadang-kadang kita merasa kesulitan bagaimana cara mendapatkan backlink EDU gratis dan berkualitas, disini saya akan mencoba kasi tips SEO mencari backlinks dofollow gratis.
.EDU adalah sebuah domain yang khusus dimiliki oleh institusi pendidikan seperti universitas, sekolah maupun situs pendidikan lainnya, umumnya .EDU biasanya dipakai oleh universitas luar negeri tetapi kalau di Indonesia umumnya memakai domain ac.id , Pada umumnya situs yang memakai domain .EDU mempunyai Google pagerank tinggi yang bagus dan sangat cepat terindex search engine maka tidak ada salahnya kita menanam backlink di situs .EDU tersebut agar blog kita juga kecipratan high PR dan terindex cepat
Cara Mencari Backlinks .EDU Gratis Berkualitas dengan Google Search
Untuk mencari backlinks .EDU ternyata memang tidak semudah yang kita pikirkan tetapi dengan sedikit trik menggunakan mesin pencari Google ini kita akan sangat mudah untuk mendapatkan ribuan blog .EDU maupun forum yang memungkinkan kita untuk meninggalkan komentar atau membuat profile gratis.
Backlinks dari .EDU Blogs
Silahkan buka Google search dan ketik query seperti dibawah ini.
- site:.edu inurl:blog "post a comment"
- site:.edu "Powered by BlogEngine.NET" site:.edu inurl:blog "post a comment"
- site:.edu "Powered by ExpressionEngine" site:.edu inurl:blog "post a comment"
- site:.edu inurl:blog "post a comment" -"comments closed" -"you must be logged in"
Backlinks dari .EDU Forum Profile
Silahkan ketik dan search query seperti dibawah ini.
- site:.edu "Powered by vBulletin" inurl:"register"
- site:.edu "Powered by phpBB" inurl:"register"
- site:.edu "Powered by PunBB" inurl:"register"
- site:.edu "Powered by SMF" inurl:"register"
- site:.edu "Powered by IPB" inurl:"register"
- site:.edu inurl:CreateUser.aspx
- site:.edu inurl:register.aspx
- site:.edu inurl:"wp-signup.php"
- site:.edu "powered by expressionengine"
- site:.edu "powered by vbulletin" inurl:"register.php"
- "leave a comment" site:.edu
- "reply to post" site:.edu
Targeted keyword backlinks .EDU
Untuk mencari backlink dengan keyword yang diinginkan silahkan ganti kata yang di cetak tebal dengan keyword anda
site:.edu inurl:blog “post a comment -"you must be logged in"-"comments closed""keyword anda"
Untuk lebih optimal ada baiknya menggunakan Nodofollow Firefox Add-ons sehingga akan kelihatan blog mana yang menyediakan dofollow links atupun nofollow
Selamat berburu backlinks .EDU dan good luck!
SEO | Kumpulan Tips Trik & Info | Tools & Add-Ons
SEO | Kumpulan Tips Trik & Info | Tools & Add-Ons adalah beberapa kumpulan artikel dari bloggerpeer.blogspot.com yang khusus membahas tentang tips trik SEO, info serta tools maupun add-ons (extension) yang berguna bagi search engine optimization, meskipun kumpulan artikel tentang SEO yang saya miliki di blog ini belum banyak karena saya juga masih belajar tentang optimasi mesin pencari dan blog Blogger Peer ini juga masih lumayan baru tetapi sedikit tidak nya mudah-mudahan bisa membantu, berguna dan bermanfaat bagi sahabat blogger semuanya.
Kumpulan Tips Trik SEO & Info | Free SEO Tools & Add-Ons (Extension)
Dibawah ini adalah kumpulan beberapa artikel saya tentang tips trik optimasi mesin pencari dan informasi, disertai juga sedikit tools & add-ons yang berguna bagi SEO
Beritahu Google Untuk Menjelajahi (Crawl) Blog Kamu
Memasukkan blog/website pada hasil pencarian Google (search) sebenarnya gampang dan free, anda tidak perlu memasukkan blog/website anda ke Google karena dia adalah sebuah mesin pencari otomatis yang menggunakan software yang biasa disebut "Spiders" yang akan menjelajahi (crawl) web secara teratur untuk menemukan situs-situs ataupun konten baru yang ada di dunia internet. Faktanya mayoritas situs-situs yang terindeks dan terlihat pada hasil pencarian Google tidak di submit secara manual, contoh: pernahkah anda melihat beberapa kalimat percakapan dengan teman anda di Twitter muncul pada hasil pencarian Google? pasti pernah bukan? padahal kita tidak pernah dan tidak terpikirkan untuk memasukkan percakapan kita itu tapi kenapa bisa muncul pada Google search? Itu membuktikan bahwa memang Google adalah sebuah mesin pencari yang otomatis, tetapi memang perlu waktu baginya untuk memunculkan pada hasil pencarian dan hal inilah yang menjadi kendala bagi kita seorang blogger ataupun webmaster yang mempunyai blog atau website agar konten/artikel kita terlihat dan terindeks lebih cepat, apalagi kita mempunyai konten tentang berita yang memang harus muncul di pencarian dalam hitungan menit
Maka suruhlah Google untuk crawl blog/website anda agar bisa dimasukkan ke indeks lebih cepat, selain metode ping untuk memanggil web spiders ada baiknya anda juga submit halaman pada situs anda dengan mengklik link dibawah ini
Tetapi jika anda sendiri yang memiliki dan mengelola blog anda, Google merekomendasikan cara-cara seperti dibawah ini
1. Masuk pada Webmaster Tools Home page
2. Pada Dahsboard, dibawah Health, klik Fetch as Googlebot
3. Pada text box pilih url yang akan di submit
4. Pada dropdown list pilih Web
5. Klik Fetch dan Google akan fetch url yang di submit, kemudian tunggu beberapa saat agar status updated
6. Jika fetch status sudah sukses kemudian klik Submit to Index, dan klik hal berikut
- Untuk submit individual URL ke Google index, pilih URL dan klik Submit. Anda bisa submit 500 URLs per-minggu dengan cara ini
- Untuk submit URL dan halaman yang terkait, klik URL and all linked pages. Anda bisa submit 10 request per-bulan dengan cara ini
Source: Google Webmaster Tools - Ask Google to crawl a page or site