java.lang.Object
com.aoapps.html.util.ImagePreload
Writes image preload scripts.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeImagePreloadScript
(String url, AnyScriptSupportingContent<?, ?> content) Prints a JavaScript script that will preload the image at the provided URL.
-
Method Details
-
writeImagePreloadScript
public static void writeImagePreloadScript(String url, AnyScriptSupportingContent<?, ?> content) throws IOExceptionPrints a JavaScript script that will preload the image at the provided URL.- Parameters:
url
- This should be the URL-encoded URL, but with only a standalone ampersand (&) as parameter separator (not &)- Throws:
IOException
-