Skip to content

Commit 251f2d1

Browse files
committed
removen delay
1 parent 3d2dfb5 commit 251f2d1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

init.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,14 @@ function commenceExtensionInitialization(configurationObject) {
134134
/**
135135
* Handle navigation changes in Single Page Applications by re-initializing the extension.
136136
* Ensures custom elements are present on the webpage after URL changes.
137-
* Function will be called once after last trigger with 1000 ms delay.
137+
* Function will be called once after last trigger.
138+
*
139+
* NOTE: Reduced debounce delay from 1000ms to 100ms to remove visible injection delay.
138140
*/
139141
const debouncedEnhancedInitialization = debounceFunctionExecution(() => {
140142
logConCgp('[init] URL change detected. Attempting to initialize extension...');
141143
commenceExtensionInitialization(window.globalMaxExtensionConfig);
142-
}, 1000);
144+
}, 100);
143145

144146
/**
145147
* Observes changes to the URL in Single Page Applications and triggers a callback upon changes.

0 commit comments

Comments
 (0)