JS error in laytheme-3dlogo plugin (v1.0.1) — erratic loading progress, throws error on every page load
-
Theme: Lay Theme, v11.5.6
Plugin: laytheme-3dlogo, v1.0.1
On every homepage load, the browser console shows the 3dlogo plugin script logging a "% loaded" progress value that behaves erratically — instead of counting up to 100%, it jumps unpredictably and overshoots well past 100% (observed values include 235%, 393%, and 504.86%), then always ends with the message "An error happened" logged from the same script (3dlogo.plugin.min.js, around line 3823, column ~97469).
Steps to reproduce:Open kraft.studio in a browser with DevTools console open.
Reload the homepage.
Observe the 3dlogo.plugin.min.js log a series of "% loaded" messages that exceed 100%, followed by "An error happened."This happened consistently across multiple reloads. I've since deactivated the plugin as a workaround since it wasn't in active use on the site, which stops the error, but I'd like to understand what's causing it and whether it's a known issue in v1.0.1.
-
hey @egorkraft, thanks for the detailed report! the values above 100% come from the loader progress callback relying on an unreliable content-length value. they don’t necessarily mean that the model is loaded multiple times.
Does the 3D logo actually show up?
-
hey @arminunruh I didn't have any model loaded, but had the plugin activated. which caused flash rendering a white rectangular on every page load. its gone since I activated the plugin, not sure if the issue would persist should I have model loaded. I can test it for you if it helps.
-
ah its ok! have a nice day