Yoga and then a Workout? Or Wrong Order?

So I know that in every yoga/stretching video, Kelli and Daniel always say that this is meant for after a workout but not before. I'm not always ready to do my workout but I want to do a short flexibility video. How long do I have to wait after holding nice long stretches? Any input would be greatly appreciated!