ns-2 up front, just before the amp set tight. decimator in the loop to get rid of amp hiss.
in the front use noise gates after any gain or boost pedals, before time-based pedals. in the loop, it should be the first thing before any other time based effects, but after an eq if yo are using one in the loop.
this has worked for me for decades, but this is all just my opinion.