How to ensure the model cache size limit is set properly #4735
-
This is my code to set model cache size to 0 based on other discussions, But the models are cached for up to default value of 5 models as it loading fast on second time. What am I doing wrong? Is there any way to find the cache values are assigned correctly? Thanks
|
Beta Was this translation helpful? Give feedback.
Answered by
elalish
Apr 4, 2024
Replies: 1 comment 2 replies
-
Did you check for JS errors? My best guess is that your script is running before the MV library loads, so |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
YokeshImersive
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you check for JS errors? My best guess is that your script is running before the MV library loads, so
customElements.get("model-viewer")
is undefined or something. There's even a web API to get an event when a particular custom element loads, which might be useful.