Can script.readyState be trusted to detect the end of dynamic script loading? Can script.readyState be trusted to detect the end of dynamic script loading? javascript javascript