Treatment of the weaving material on the loom