package
0.0.0-20221027220206-53a1486f4205
Repository: https://github.com/google/webpackager.git
Documentation: pkg.go.dev

# Functions

ExtractPreloadTags detects <link rel="preload"> in the <head> element and adds them to the Preloads field.
ExtractSubContentTypes detects internal subcontents in HTML docuemnt, such as CSS (<style>) and JavaScript (<script> without src attribute), and adds their MIME types (e.g.
InsecurePreloadScripts detects scripts loaded at the top of the document in a blocking manner and adds them to the Preloads field.
PreloadStylesheets detects <link rel="stylesheet"> in the <head> element and adds referenced stylesheets to the Preloads field.

# Variables

AggressiveTaskSet gets as many resources preloaded as Web Packager can.
ConservativeTaskSet is the set of HTMLTasks used in the default config.

# Interfaces

HTMLTask manipulates HTMLResponse to optimize the page loading.