What should you consider for SEO when using JavaScript on mobile websites?

ProcrustesPR

When using JavaScript on a mobile website, start your SEO checks with whether search engines can read the main content, whether URLs and titles update to match content changes, and whether mobile devices load too many unnecessary resources. A page can work properly on screen and still have crawling issues. Adopting responsive web design (RWD) does not guarantee rankings, either. The checks below focus on content access, URL and title settings, and the loading experience. Predictions in older articles about Googlebot updates are not guarantees of its current capabilities.

ProcrustesPRProcrustesPRHow Long Does It Take to Evaluate SEO Results?

First, confirm that search engines can read the content—not just that it appears on screen

In a 2018 article, awoo noted that it was still encountering cases where Googlebot did not fully crawl JavaScript-generated content. This was an observation from practice at the time, not a claim that all JavaScript websites have problems. The key question is whether search engines can actually access important content, not just whether users can see it.

  • Take inventory of the main text, images, and videos generated by JavaScript, and include them in your crawling checks.
  • Compare the mobile and desktop versions to confirm that the mobile version is not missing important pages or content, and check image alt text.
  • Do not assume that switching to server-side rendering is always necessary; the article presented it only as an option to try when encountering crawling issues at the time.

The same article expressed optimism about an update expected in the second quarter of 2018, while acknowledging that it was too early to assess its effects. That is not a basis for assuming that crawling checks for JavaScript-generated content are no longer needed today.

When switching topics, check URLs, titles, and descriptions too

JavaScript can switch content within the same screen, but you also need to check whether the URL, title, and description update to match. awoo’s 2018 article highlighted this issue and recommended using different URLs for different topics. The latter was the article’s editorial advice, not an official Google rule it cited.

For example, when switching from one product to another, check: Does the URL correspond to the new content? Does the title still name the previous product? Does the description match the current page? This illustrates what to check; it does not mean that changing a title alone will improve rankings.

Reduce resources that mobile devices do not need, then test usability

A 2025 article by yesharris cautioned that, on an unoptimized RWD site, mobile devices may load the same images, CSS, and JavaScript as desktop devices, adding to the loading burden. A layout that adapts to screen size does not necessarily load fewer resources.

  • Check for unnecessary CSS and JavaScript, such as resources used only for desktop mouse-hover effects, and ask an engineer to assess whether they can be reduced.
  • Consider switching images to WebP and check that they scale correctly; do not focus only on the layout and overlook the resources needed to load images.
  • Review the JavaScript and iframes used for external content. A 2023 Semrush article noted that these elements may slow loading and that loading failures may also harm the user experience. Reduce unnecessary use rather than removing them across the board.

Finally, test across different mobile screen sizes and browsers: check text and buttons, whether content extends beyond the screen width, and how quickly pages load. PageSpeed Insights can also help with testing. The goal is to make content easy to read and interactions smooth, not simply to minimize the use of a particular technology.

ProcrustesPRProcrustesPRWhere should I start if I want to do SEO myself?

SEO for mobile websites using JavaScript: perspectives from across the web

What else should you check when the mobile and desktop versions use different URLs?

First, check that the canonical and alternate tags correctly link the mobile and desktop URLs. If the site also has multiple language versions, verify the URLs for each language. The server hosting the mobile version must also be able to handle visits from search engine crawlers. These are key checks when mobile and desktop versions use different URLs. If both versions share the same URLs, there is no need to map one set of URLs to another.

Do JavaScript websites need to pay attention to structured data?

Yes—structured data is worth including in page checks. awoo's 2018 article recommended retaining this markup and noted that it could improve how pages appear in search results. However, the available material does not explain the current eligibility requirements for specific markup. Adding markup does not guarantee special search result features, so this recommendation should not be treated as a promise of how results will appear.

ProcrustesPRShould I rewrite or update an old article that does not rank?

References

  1. SEO趨勢有哪些?awoo重點整理+最佳實戰祕技(2018)www.awoo.ai · 2018-01-25T06:07:21+00:00 — Discusses: What else should you check when the mobile and desktop versions use different URLs?; Do JavaScript websites need to pay attention to structured data?
  2. RWD響應式網頁:網站架構怎麼選?www.yesharris.com · 2025-02-20T13:52:07+08:00 — Source used in the article above.
  3. SEO Web Design: 10+ Tips to Build a Better Websitewww.semrush.com · 2023-07-13T13:44:00Z — Source used in the article above.

Related articles

How Long Does It Take to Evaluate SEO Results?Where should I start if I want to do SEO myself?Should I rewrite or update an old article that does not rank?What should I check when organic traffic suddenly drops?Why can I not find my published article on Google?Will Reposting Social Content on My Website Cause a Duplicate-Content Penalty?Eight SEO essentials for beginners: Getting your pages indexedWhat Is SEO? Understanding Optimization Priorities Through How Search Engines Work
ProcrustesPR
ProcrustesPR