Hmm, that's disappointing.
With that considered, how would you recommend I achieve what I am trying to do? I have a grid which is looping through a JSON response that contains various poll options. That response contains a "width" value (a percentage) that is supposed to resize another grid element, which is contained in the loop. This second child grid has a background, and simply serves as a bar that visualizes the distribution of votes for the poll.
The problem is, as far as I can tell, custom JavaScript that is tied to a response is run BEFORE the screen loads. This is problematic, as I need to modify a part of the screen itself—in this case, the width of a grid element. I suppose I could hypothetically store each of these widths in separate local storage variables, and then when the screen loads, run some custom JavaScript that reads those variables, and resizes the grid based on the respective variable's value. However, I'm not sure how I would target each unique grid.
Am I missing something? Or do I actually need to create a ton of local storage variables, and then use jQuery to target each grid element on the page, and loop through those while reading the individual local storage variables?
There has to be a better way!