image

Contains utility functions for dealing with images.

Methods:

is_valid_url
preload

Direct Link

is_valid_url

( URL )
Determines whether or not a given URL is a valid image path.

Parameters

  • URL String
    The URL to check.

Returns

Boolean
True means the given URL is valid, false means it's not.

Direct Link

preload

( images )
Preloads images into the page.

Parameters

  • images Array
    An array of URL strings to preload.