#' @importFrom V8 v8
ctx = NULL
.onLoad <- function(libname, pkgname) {
ctx <<- V8::v8(global = "window")
ctx$source(system.file("js/htmlminifier.min.js", package = "minifyHTML"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.