precompileXPath

Type: Function

How to get precompileXPath?

JavaScript

import precompileXPath from 'fontoxml-selectors/src/precompileXPath.js'

Deprecated!

This is deprecated.

This is a no-op, this function no longer has any effect because the benefits of precompiling XPaths asynchronously did not affect the overall performance enough to justify the effort needed to correctly use it.

Arguments

  1. xpathString

    (Required)

    Type: String

    The XPath expression to pre-compile

Returns

Type: Promise<String>

Resolves to the XPath expression when pre-compilation is complete.