Thursday, January 14, 2016

JavaScript & Active Client Side (browser-based) Scripting

JavaScript & Active Client Side (browser-based) Scripting


Hasil gambar untuk JavaScript & Active Client Side (browser-based) Scripting



Approximately 3-5% of web browsers are not JavaScript-enabled for one reason or another. I recommend minimizing the number of pages using JavaScript whenever possible. In addition, you should place your JavaScript in its own external .js file and link to it from within your pages. This can decrease page load time and improve usability. You can link to the external .js file by placing the following code in your page head.


If your entire page is in JavaScript, some people will not see it; in addition, many search engines will not index it properly. Make sure to use noscript tags to define what was in the JavaScript to users with that feature disabled. Noscript tags look like this and should be placed just after a script’s location:

Hacks

There are ways to use CSS and other technologies to do many of the things JavaScript does. Additionally, there are some technologies that give more advanced presentations while still using fairly lean code that search spiders can follow. For example, you can use unordered lists to make DHTML menus.

Keep File Size Small

The back button is one of the most used buttons on web browsers. If your file takes a long time to load, you may be kissing your user goodbye before she even gets to see your full hello.

Specify Image Details

To allow quick loading, it is a good idea to specify image sizes on the page so the text can load before the image is rendered.

If an image is simply part of the design or navigation, you can just use a blank alt tag as the image does not contribute to the page theme. Also, stuffing 100 words in the alt tag does not likely add much to your SEO efforts and could make your pages seem spammy.

If you are unsure whether a page is using text or images, you can view the page source or hit control A to highlight the text and images.

On linked images, many search algorithms treat the image alt text similarly to how they treat link anchor text (which is described in more detail in the linking section of this e-book). Most SEOs recommend using the alt tag, but do not mention the title tag. Search algorithms try to use whatever they find useful; thus, if most people are NOT stuffing the image titles full of junk because they don’t know about this feature, some search engines may eventually want to look there for good, non-spammy text.


0 comments:

Facebook  Google+ Instagram Linkedin

Featured Post

Common Keyword Problems

PageRank Checker