Official statement
To display contextual content in JavaScript modals, it is advisable to use URL fragments (#) because Google generally ignores them. Fragments identify content that is already part of the main page.
Other statements from this video 13 ▾
- □ Is hidden content truly visible to Google?
- □ Do Google’s third-party tools really impact your SEO?
- □ Why Have #! Fragments Become a No-Go for SEO?
- □ Does JavaScript Really Affect Crawlability?
- □ Why does Google render after crawling?
- □ How Are JavaScript Resource Requests Impacting Your Crawl Budget?
- □ Does blocking the main thread really impact SEO?
- □ Could JavaScript harm your SEO the way Flash did?
- □ Is it possible to avoid cloaking with localized user experiences?
- □ Why should you steer clear of inline JavaScript for large SEO scripts?
- □ Is it true that the canonical tag is often overlooked by Google?
- □ Does AMP really affect your website's SEO?
- □ Why is page speed essential for SEO rankings?
Official statement from
(5 years ago)
⚠ A more recent statement exists on this topic
Can JavaScript Really Change How Google Treats URL Hash Fragments?
View statement →
TL;DR
Google recommends using URL fragments (#) for modal content in JavaScript. Fragments do not interfere with indexing as they are recognized as part of the main page. This avoids issues related to crawling and indexing of modal content.
❓ Frequently Asked Questions
Les fragments d'URL affectent-ils le SEO ?
Non, car Google ignore les fragments d'URL lors de l'indexation, donc pas d'impact direct sur le SEO.
Dois-je utiliser des fragments pour tous mes contenus dynamiques ?
Non, uniquement pour ceux qui ne requièrent pas une indexation individuelle.
Comment savoir si mon contenu dans une modal doit être indexé ?
Évaluez sa pertinence dans le contexte du SEO et sa contribution potentielle au trafic organique.
🎥 From the same video 13
Other SEO insights extracted from this same Google Search Central video · published on 26/05/2021
🎥 Watch the full video on YouTube →
💬 Comments (0)
Be the first to comment.