Want a no risk way of working with an SEO agency? BDR London works on a pay for performance SEO model. Single keyword, multi keyword and pay per sale packages to suit all budgets. Packages start from £99 per month.
Read More
SEO Agency: Does Javascript Effect Search Engine Optimisation?
There is lots of information around that states Javascript is bad for seo. But with Google improving and changing its algorithm all the time is this still the case? So should you use Javascript in your web pages?
As an SEO agency it is our job to find know these things. Our research uncovers that you can use Javascript you just have to be careful where in the page you place the code.
JavaScript in the <body> will be executed as the page loads. This is not always desirable. Sometimes we only want to execute a script when a user triggers an event. You can do this by using JavaScript in the <head> this guarantee the script is loaded before anyone uses it.
It is preferable to put Javascript code in the <head>. If you put your Javascript code in the body of the page it can get lost within the page code ad it can become difficult to debug. If you put your Javascript code within your web page it will make it difficult for Google to crawl.
So if putting Javascript code within the page is no good you may think why not put it at the bottom of the page after the HTML code? Well that is no good either as the Search engine bot takes the bottom of the page as being the </html> tag so it will continue to crawl the page and your javascript as it keeps going right until it hits </html>.
A great way to keep your website code clean and SEO friendly is to keep your Javascript code in a separate file and call it on from the page when it is needed.
There is evidence Google can read URLs in Javascript code but why chance it? As an SEO agency when we talk about web design with our clients we do everything within our power to make it as easy as possible for Google to come to the site and crawl it.
If it makes it easier to think about it using a real world example envisage this. Would you build a shop doorway only 5 feet high? No, as this would make it difficult for people to enter. Javascript code does make it more difficult for Google to enter your site

Building links is the most difficult task an SEO agency undertakes. There are lots of ways to build links but not all links are equal. Link building is time intensive and a quality link can be worth 10 spam or poor quality links. Also some links are “do follow” and others are “no follow”.
Post new comment