Refining widget config. Optimizing documentAttached callback perf.