Currently, I am implementing a feature on my website that detects and adjusts the layout both when the page first loads and when the browser window is resized. However, I have encountered an issue that I overlooked. The problem arises from reading CSS values from the file upon page load and then switching to dynamic JavaScript values once the document is ready. I am seeking assistance in finding a way to prioritize reading the JavaScript value before the CSS value.
Any insight or suggestions would be greatly appreciated,
DT