JavaScript-adaptive: In this configuration, all devices are served the.Three popular implementations of JavaScript for mobile-friendly sites are: Relate to Google's recommendation of using responsive web design. This section describes different approaches to using JavaScript and how they Include deciding which ad or which image resolution variant to show in the page.
One part of building mobile-friendly sites that requires carefulĬonsideration is the use of JavaScript to alter the rendering andīehavior of the site on different devices. Web design configuration and treat it appropriately. These external files helps our algorithms detect your site's responsive Googlebot using robots.txt or other methods. On the Google Search Central blog and visit the web.dev site.Ĭrawling of any page assets (CSS, JavaScript, and images) for any If you're interested in responsive web design, start with our blog post This improvement in crawling efficiencyĬan indirectly help Google index more of your site's content and keep it Rather than crawling multiple times with different Googlebot user agents to Pages, a single Googlebot user agent only needs to crawl your page once, Saves resources when Googlebot crawls your site.Also, user agent-based redirection is error-prone and canĭegrade your site's user experience (see Pitfalls when detecting user agents Requires no redirection for users to have a device-optimized view, which.Reduces the possibility of the common mistakes that affect mobile sites.Requires less engineering time to maintain multiple pages for the same content.Rather than needing to signal the existence of corresponding desktop/mobile pages. Helps Google's algorithms accurately assign indexing properties to the page.Makes it easier for users to share and link to your content with a single URL.We recommend using responsive web design because it: As a general rule, if your site works in a recent browser such as Google Chrome orĪpple Mobile Safari, it would work with our algorithms. Mobile-friendly because it requires this type of interaction on aĮlement. Users may have to double-tap or pinch-to-zoom in order to be able to see and Specified that matches the device width - the mobile browser doesn't scale theįor users, this means that font sizes may have an inconsistent appearance, and On the right is the same page with a viewport On the left is a page without a meta viewport specified - the mobileīrowser therefore assumes desktop width and scales the page to fit the screen, Part of the content that fits within the screen. Mobile browsers then try to make the content look better by increasingįont sizes and either scaling the content to fit the screen or showing only the Page at a desktop screen width (usually about 980px, though this varies acrossĭevices). The meta viewport element is absent, mobile browsers default to rendering the To signal to browsers that your page adapts to all devices, add aĪdjust the dimensions and scaling of the page to the width of the device. Check out web.dev for more documentation.
Responsive design serves all devices with the same code that adjusts for HTML code to all devices and CSS is used to alter the rendering of the page on Responsive web design is a setup where the server always sends the same