Only set document when it has not yet been set or the context is different to avoid the extra function call
Only set document when it has not yet been set or the context is different to avoid the extra function call

mzgol/sizzle,npmcomponent/cristiandouce-sizzle