docs: more docs for emulated mobile
This commit is contained in:
parent
fd52809a1c
commit
cc9fb77339
|
|
@ -295,13 +295,23 @@ sitespeed.io https://www.sitespeed.io -b safari --safari.useSimulator --safari.d
|
||||||
|
|
||||||
## Test on emulated mobile
|
## Test on emulated mobile
|
||||||
|
|
||||||
You can use desktop browser and emulate mobile browsers. If you use Chrome you can do that easiest with:
|
You can use the desktop browser and emulate mobile browsers. If you use Chrome you can do that easiest with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sitespeed.io https://www.sitespeed.io -b chrome --browsertime.chrome.mobileEmulation.deviceName "Moto G4"
|
sitespeed.io https://www.sitespeed.io -b chrome --browsertime.chrome.mobileEmulation.deviceName "Moto G4"
|
||||||
```
|
```
|
||||||
|
|
||||||
You can see the list of different device names in Chrome devtools. You can also slow down your CPU with the CPU throttling command:
|
You can see the list of different device names in Chrome devtools. Click on *Edit*.
|
||||||
|
|
||||||
|

|
||||||
|
{: .img-thumbnail-center}
|
||||||
|
|
||||||
|
And then you can see the full list.
|
||||||
|
|
||||||
|

|
||||||
|
{: .img-thumbnail-center}
|
||||||
|
|
||||||
|
You can also slow down your CPU with the CPU throttling command to better emulate a mobile phone:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sitespeed.io https://www.sitespeed.io -b chrome --browsertime.chrome.mobileEmulation.deviceName "Moto G4" --browsertime.chrome.CPUThrottlingRate 6
|
sitespeed.io https://www.sitespeed.io -b chrome --browsertime.chrome.mobileEmulation.deviceName "Moto G4" --browsertime.chrome.CPUThrottlingRate 6
|
||||||
|
|
@ -309,4 +319,6 @@ sitespeed.io https://www.sitespeed.io -b chrome --browsertime.chrome.mobileEmula
|
||||||
|
|
||||||
To find a good throttling rate you can use our [CPU benchmark guide](https://www.sitespeed.io/documentation/sitespeed.io/cpu-benchmark/).
|
To find a good throttling rate you can use our [CPU benchmark guide](https://www.sitespeed.io/documentation/sitespeed.io/cpu-benchmark/).
|
||||||
|
|
||||||
|
You probably also want to set the user agent string matching the device you want to emulate using `--browsertime.userAgent`.
|
||||||
|
|
||||||
|
However running like this you will use your desktop version of the browser, running on desktop hardware, so it is not the same as running on a real mobile device!
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Loading…
Reference in New Issue