splash_images: Enable/disable images

Description Usage Arguments See Also Examples

View source: R/dsl.r

Description

By default, images are enabled. Disabling of the images can save a lot of network traffic (usually around ~50 affect the JavaScript code inside page: disabling of the images may change sizes and positions of DOM elements, and scripts may read and use them.

Usage

1
splash_images(splash_obj, enable = TRUE)

Arguments

splash_obj

splashr object

enable

logical

See Also

Other splash_dsl_attributes: splash_enable_javascript(), splash_plugins(), splash_private_mode(), splash_response_body()

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
splash_local %>%
  splash_images(TRUE) %>%
  splash_user_agent(ua_macos_chrome) %>%
  splash_go("https://rud.is/b") %>%
  splash_wait(2) %>%
  splash_har() -> rud_har

## End(Not run)

hrbrmstr/splashr documentation built on Feb. 23, 2020, 2:13 p.m.