[GH-ISSUE #44] activate performance checker only on prod build #107

Closed
opened 2026-03-01 17:27:37 +03:00 by kerem · 2 comments
Owner

Originally created by @mirobo on GitHub (Aug 9, 2022).
Original GitHub issue: https://github.com/AEPKILL/devtools-detector/issues/44

Originally assigned to: @AEPKILL on GitHub.

hey there

is it possible to NOT log "largeObject" to the console when the performance checker is just imported? When I import "performanceChecker" the code gets executed immediately and slows down execution of various tests...

const largeObject = createLargeObject();
const largeObjectArray: Record<string, string>[] = [];

for (let i = 0; i < 50; i++) {
  largeObjectArray.push(largeObject);
}

thanks!
miro

Originally created by @mirobo on GitHub (Aug 9, 2022). Original GitHub issue: https://github.com/AEPKILL/devtools-detector/issues/44 Originally assigned to: @AEPKILL on GitHub. hey there is it possible to NOT log "largeObject" to the console when the performance checker is just imported? When I import "performanceChecker" the code gets executed immediately and slows down execution of various tests... ``` const largeObject = createLargeObject(); const largeObjectArray: Record<string, string>[] = []; for (let i = 0; i < 50; i++) { largeObjectArray.push(largeObject); } ``` thanks! miro
kerem 2026-03-01 17:27:37 +03:00
Author
Owner

@AEPKILL commented on GitHub (Aug 15, 2022):

It's lazy initialization now

<!-- gh-comment-id:1214714483 --> @AEPKILL commented on GitHub (Aug 15, 2022): It's lazy initialization now
Author
Owner

@mirobo commented on GitHub (Aug 15, 2022):

It's lazy initialization now

thank you so much, I'll try it out :-D

<!-- gh-comment-id:1214730803 --> @mirobo commented on GitHub (Aug 15, 2022): > It's lazy initialization now thank you so much, I'll try it out :-D
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/devtools-detector#107
No description provided.