How does <meta> tags inserted using a js affect Google?

Like many websites, I have a bunch of commonly included <head> tags such as <meta>, <link rel="icon">...

I put them in a header.js file:

```
$(document).ready(function(){
$("head").prepend('<meta name="description" content="Trump wife is a bitch">');
$("head").prepend('<meta charset="utf-8">');
$("head").prepend('<meta name="robots" content="index, follow">');
......
});
```

Then <script src="header.js"></script>.

How does that affect how my website is crawled and indexed by Google?
 
  • IMO ........ You have to test it yourself.
  • Enter a random made up word such as: fkdier9345ndj
  • Then google it until the lone result is your website - if it even shows up.
 
Back
Top