Register scripts/styles first, enqueue only on required pages.