Tools to Work with the 'Splash' JavaScript Rendering Service in R
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

splash_images.Rd 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/dsl.R
  3. \name{splash_images}
  4. \alias{splash_images}
  5. \title{Enable/disable images}
  6. \usage{
  7. splash_images(splash_obj, enable = TRUE)
  8. }
  9. \arguments{
  10. \item{splash_obj}{splashr object}
  11. \item{enable}{logical}
  12. }
  13. \description{
  14. By default, images are enabled. Disabling of the images can save a lot of network
  15. traffic (usually around ~50%) and make rendering faster. Note that this option can
  16. affect the JavaScript code inside page: disabling of the images may change sizes and
  17. positions of DOM elements, and scripts may read and use them.
  18. }
  19. \examples{
  20. \dontrun{
  21. splash_local \%>\%
  22. splash_images(TRUE) \%>\%
  23. splash_user_agent(ua_macos_chrome) \%>\%
  24. splash_go("https://rud.is/b") \%>\%
  25. splash_wait(2) \%>\%
  26. splash_har() -> rud_har
  27. }
  28. }
  29. \seealso{
  30. Other splash_dsl_attributes: \code{\link{splash_enable_javascript}},
  31. \code{\link{splash_plugins}},
  32. \code{\link{splash_private_mode}},
  33. \code{\link{splash_response_body}}
  34. }
  35. \concept{splash_dsl_attributes}