Widgets: Improved resource loading / Simplified widgets code