Data Attributes
Here are the data attributes that our Conflict Detection API supports.
Usage
The data-*
attributes may be applied to the <script>
tag that loads conflict-detection.js
.
For example, this shows how to adjust the timeout
with the data-fa-detection-timeout
attribute.
data-fa-detection-timeout
A convenience for setting the timeout
using an attribute.
This will set the timeout to 1000 milliseconds:
data-fa-detection-results-collection-max-wait
A convenience for setting resultsCollectionMaxWait
using an attribute.
This will set it to 3000 milliseconds:
data-fa-detection-ignore
Apply this attribute to any <style>
, <link>
, or <script>
tag that you want the conflict detector to ignore.
The conflict-detection.js
<script>
knows to ignore itself, with or without this attribute.
In this example, we’ll ignore a style that we know is not a conflict: