Sunday, March 26, 2023
Learning Code
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#
No Result
View All Result
Learning Code
No Result
View All Result
Home JavaScript

Google Explains More About Head Section & JavaScript

learningcode_x1mckf by learningcode_x1mckf
January 16, 2023
in JavaScript
0
Google Explains More About Head Section & JavaScript
74
SHARES
1.2k
VIEWS
Share on FacebookShare on Twitter


You might also like

Hackers Inject Weaponized JavaScript (JS) on 51,000 Websites – GBHackers

4 Ways to Remove a Specific Item From a JavaScript Array – MUO – MakeUseOf

Toolkit Allows JavaScript Devs to Program Embedded Devices – The New Stack

Google Head

Final week we reported on a remark made by John Mueller of Google in regards to the head section of your HTML and why you should keep it clean. John, on Friday, posted a Mastodon thread explaining extra in regards to the head part and the way engines like google work together with it, particularly if there may be a whole lot of JavaScript in it.

Right here is the content material from the thread:

search engine optimization in your head vs an excessive amount of #JavaScript?

This comes up every so often, I assumed I might be extra elaborate as soon as (it isn’t new). Search engines like google (I solely actually know Google, YMMV) render HTML pages and there are some settings that have to be discovered within the head of a web page as a way to be legitimate. When you care about these settings, do not make the

brittle, and ideally transfer these settings to the highest of the pinnacle.

The search engine optimization settings I am pondering of are the robots meta tag & the canonical hyperlink factor, however there’s additionally the title & description meta tag which some folks take into account necessary. It isn’t nearly search engine optimization both – you in all probability additionally need to ensure issues just like the character set definition, viewport & CSP are thought of legitimate.

“In fact my head is okay” – typically it isn’t as apparent as clearly damaged markup. The pinnacle is self-closing, so any HTML factor that is not legitimate within the

will end in the remaining to be thought of as part of the physique. That may be a stray img that finally ends up someplace mistaken, it could possibly be an iframe {that a} script injects to the highest of the pinnacle throughout rendering. That is seen for those who examine the DOM of a web page in your browser.

Browsers are typically useful and attempt to interpret what you imply, if you do not need a web page to be listed, or need a completely different URL as canonical, you in all probability don’t desire engines like google to guess. (search engine optimization is to a big half about not making engines like google guess.)

In brief, keep away from making the pinnacle brittle for those who care about these search engine optimization settings, take into account shifting them to the highest of the pinnacle (do not embody 5k strains of JS above them), and double-check the rendered DOM in your browser every so often.

You do not have to maneuver it into the physique (that may trigger different issues), I might transfer it to beneath the vital parts that you must have found within the head.

— John Mueller is generally not right here 🐀 (@JohnMu) January 13, 2023

That’s the finish of his head thread – acquired it?

Discussion board dialogue at Mastodon.





Source link

Share30Tweet19
learningcode_x1mckf

learningcode_x1mckf

Recommended For You

Hackers Inject Weaponized JavaScript (JS) on 51,000 Websites – GBHackers

by learningcode_x1mckf
March 25, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Hackers Inject Weaponized JavaScript (JS) on 51,000 Websites  GBHackers Source link

Read more

4 Ways to Remove a Specific Item From a JavaScript Array – MUO – MakeUseOf

by learningcode_x1mckf
March 24, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

4 Ways to Remove a Specific Item From a JavaScript Array  MUO - MakeUseOf Source link

Read more

Toolkit Allows JavaScript Devs to Program Embedded Devices – The New Stack

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Toolkit Allows JavaScript Devs to Program Embedded Devices  The New Stack Source link

Read more

Select data value from grandparent div? – JavaScript – SitePoint

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Select data value from grandparent div? - JavaScript  SitePoint Source link

Read more

How to Handle Errors in JavaScript – Programming – MUO – MakeUseOf

by learningcode_x1mckf
March 23, 2023
0
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

How to Handle Errors in JavaScript - Programming  MUO - MakeUseOf Source link

Read more
Next Post
Time limit for notify – JavaScript – SitePoint Forums

Scroll to anchor and highlight menu item not working in Firefox - JavaScript - SitePoint Forums

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related News

Java on Visual Studio Code Supports Java 18 — Visual Studio Magazine

Java on Visual Studio Code Supports Java 18 — Visual Studio Magazine

October 7, 2022
Top 7 Best JavaScript File Upload APIs for You to Explore in 2023

Top 7 Best JavaScript File Upload APIs for You to Explore in 2023

December 15, 2022
Google expands open source bounties, will soon support Javascript fuzzing too – ZDNet

Java Developer Survey Reveals Increased Need for Java … – PR Newswire

March 24, 2023

Browse by Category

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

RECENT POSTS

  • YS Jagan launches Ragi Java in Jagananna Gorumudda, says focused on intellectual development of students – The Hans India
  • Disadvantages of Java – TheServerSide.com
  • Advantages of Java – TheServerSide.com

CATEGORIES

  • C#
  • C++
  • Java
  • JavaScript
  • Python
  • Swift

© 2022 Copyright Learning Code

No Result
View All Result
  • Home
  • JavaScript
  • Java
  • Python
  • Swift
  • C++
  • C#

© 2022 Copyright Learning Code

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?