Bricks - Enqueues scripts and stylesheets at the document head?

The best way to enqueue elements' scripts and stylesheets at the document head is to loop through Bricks data to check whether an element appears on that document or not.