Clicky

John Mueller of Google: Move JavaScript Below HTML Headers

Google’s John Mueller recommends placing JavaScript code below the HTML element to ensure that search engines can clearly understand your website.

Google’s John Mueller suggests keeping your <head> “Clean” HTML element section to ensure search crawlers can fully understand your website.

Mueller shares this advice in a Reddit thread, where a user asks if the placement of the HTML code could cause SEO issues.

The answer is yes; HTML placement could negatively impact your SEO efforts if it doesn’t appear at the top of the page.

John Mueller on JavaScript in the Head Element

Mueller’s intention was to emphasize the importance of keeping the <head> neat and tidy HTML document section with scripts that can be placed elsewhere.

The <head> The element should only contain metadata about the document itself used by browsers and search engines, which helps search engines understand what the page is about and provides data to browsers and search engines to display the web page correctly (which means to display it correctly).

Some JavaScript code that can be placed after <head> element should go next.

After moving any JavaScript code from the <head> section, Mueller recommends using the renderer in Search Console to see if the page renders correctly after the move.

“The html headers (<head>) should be pretty much at the top. I’d move any JS under the HTML headers and check with the render tool in the search console that the JS doesn’t mess up the <head> section.”

As for the main content, Mueller says its positioning is less important, although it is crucial for the <head> it must be clean and well organized so that Googlebot can understand it correctly.

“For the content it doesn’t really matter, but since the main part is for machine-readable information that has been verified to be in a specific part of the page, it really needs to be clean on top.

Down with JavaScript! (in the <head>)”

Why Does The Placement Of JavaScript Matter For SEO?

When designing a website, it is best to use the async and defer attributes strategically which allows for the best rendering and interactivity at maximum page speed for users.

This is because JavaScript can delay rendering a web page while it loads, resulting in a poor user experience.

HTML can be rendered first, allowing the user to view the content while JavaScript loads in the background with proper use of the defer and async attributes.

Featured image: StockEU/Shutterstock

Matt G. Southern

Senior News Writer at Search Engine Journal

Matt G. Southern, Senior News Writer, has been with Search Engine Journal since 2013. With a bachelor’s degree in communications, …

Subscribe to SEJ

Receive our daily newsletter from SEJ founder Loren Baker on the latest industry news!

Will SEO become obsolete?

SEO is still alive and well. It is as relevant today as it has ever been. If anything, it might even be more important. Today, 53% of all website traffic comes from organic search.

Will SEO exist in 5 years? SEO will not be phased out within the next five years because social media and search engines will most likely merge. Facebook has already started doing this: it averages more than 1.5 billion searches every day. Twitter has done the same; have joined in partnership with Google.

Does SEO have a future?

Some of the main ways AI tools have proven their effectiveness are in SEO keyword research, content creation, traffic and site growth analysis, voice search, and SEO workflows. These applications have made it clear that the future of SEO is in Artificial Intelligence.

Is SEO still relevant in 2022?

The fact that SEO works great even in 2022 as a method of delivering better business results for business websites and their owners, combined with the need for ongoing research into what works, makes it still relevant as a digital marketing method, but even more as a valuable and rewarding service…

Is SEO a good career in future?

Yes. SEO is a good career option as it is among the most sought-after careers in the digital marketing field. There are several organizations around the world that hire SEO professionals to generate better content and thus produce more business leads.

Will SEO be obsolete?

Don’t be fooled: SEO isn’t dying, but it’s evolving into so much more than it was years ago. If you’ve been debating whether or not to invest in SEO for your business, read on to find out why SEO isn’t dying, it’s actually thriving.

Quel avenir pour le SEO ?

For the future of SEO in 2021, you need to focus on a positive user experience. With the increase in the number of people here font des achats en ligne, it is crucial that your site offers the best experience possible.

Quelles sont les limites du SEO ?

La concurrence sur les moteurs de recherche est (parfois) élevée. On the most popular requests and topics, the number of competitors is necessarily higher and the efforts to be made to position yourself at the top of the ranking are more consequential.

How long will SEO last?

Most professionals expect to see results in just 2 months, but SEO can take up to 12 months to work. While every company’s SEO strategy is different, most companies can expect to see considerable results in 6-12 months.

Will SEO exist in 10 years?

Speculations abound, but they don’t always provide a reliable prediction of what’s to come. One thing is certain, however: SEO will last a long time. As long as search engines exist and internet users continue to use keywords and phrases to find what they are looking for, the search engine business will continue.

Will SEO exist in 5 years?

SEO will continue to exist for a long time because social media and search engines will most likely merge. In fact, Facebook has already started doing this, averaging more than 1.5 billion searches every day, while Twitter has joined in partnership with Google.

Who is the SVP of Google?

Who is the senior president of Google?

Who are the top execs at Google?

Google management

  • Sundar Pichai. CEO.
  • Sergej Brin. President.
  • Fried Benjamin. Information manager.
  • Larry Page. Co-founder and Director.

How many top executives does Google have?

Google CEOs and executives. Synthesis. Based on our data team’s research, Sundar Pichai is the CEO of Google. Google has 139,995 employees, including 63 in leadership positions.

Who is the senior VP of Google?

James Mayinka is a national and corporate executive from Zimbabwe who was recently appointed by Google as Senior Vice President. Manyika’s new role comes with enormous responsibilities, as she is tasked with shaping and sharing Google’s views on how technology affects societies.

How many SVP are there in Google?

292 Senior Vice President of Google jobs in the US (8 new)

How much does SVP at Google make?

The estimated total salary for a Google senior vice president is $964,135 per year.

How many Google VPs are there?

Google now has some levels but not as many as might be expected in an organization with more than 37,000 employees: just 5,000 managers, 1,000 directors and 100 vice presidents.

What does John Mueller do?

Mueller (born June 21, 1937) is an American political scientist in the field of international relations and dance history scholar. He is recognized for his ideas on the “banality of ethnic warfare” and the theory that major world conflicts are fast becoming obsolete.

Who is John Mueller on Google? John coordinates search relationship efforts with Google as a search advocate. He and his team connect Google’s internal world of search engineering to those who build and optimize public websites.