Sorry if I’m just being dumb but won’t putting the script tag in the head solve this?
We use Mansory at work (because Packery is paid*) and since it is needed for the entire page layout putting inside the head get us less content redraw.
*I know Discourse is opensource, this means I can use Isotope on the free license?