Categories
Drupal Development Resources WordPress

Introducing Chrome’s New Mobile Emulator

Did you know Chrome has a built in mobile device emulator? You can resize the browser window to popular devices like the iPhone 6, iPhone 6 Plus, Galaxy S5, Galaxy Note, and Google’s own line of Nexus devices.

Chrome Inspector, Device Emulator

 

How to Activate the Mobile Device Emulator

1. Open developer tools – Ctrl+Shift+I (PC) or Cmd+Shift+I (Mac), or right click anywhere on a page and select “Inspect Element”

2. Click on the “Mobile” Icon

activate mobile device emulator

Wait, there’s more!

Not only does the emulator give you a ton of popular devices, it will also spoof the user agent. This means you can trick the site into thinking you’re on an actual mobile device instead of just on a smaller desktop browser window.

Select a device

 

Spoofing vs Resized Browser

If your project requires a separate mobile site or code that is conditional on a device, you can now easily test and debug from a single dropdown menu. By spoofing the user agent as well as adjusting to the correct window size, you get a very accurate representation of the page without having to keep dozens of devices on-hand for testing.

resized vs emulator

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.