We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed281a commit 013e2bfCopy full SHA for 013e2bf
docs/user/addons.rst
@@ -415,7 +415,8 @@ Common use cases for custom scripts include:
415
Accessing Addons data from your script
416
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
417
418
-Custom scripts are loaded after the ``readthedocs-addons-data-ready`` event has been fired.
+Custom scripts are loaded asynchronously after the initial page load,
419
+which means the ``readthedocs-addons-data-ready`` event has already been fired by the time your script executes.
420
To access the Addons data from your custom script,
421
check the ``window.ReadTheDocsEventData`` object first,
422
then subscribe to the event for future updates (for example, when the URL changes in a single-page application):
0 commit comments