Class ImagePreload

java.lang.Object
com.aoapps.html.util.ImagePreload

public final class ImagePreload extends Object
Writes image preload scripts.
Author:
AO Industries, Inc.
  • Method Details

    • writeImagePreloadScript

      public static void writeImagePreloadScript(String url, AnyScriptSupportingContent<?,?> content) throws IOException
      Prints 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 &amp;)
      Throws:
      IOException