I took this piece of code unchanged from the PopupDirective.js. And the fact that there is a css included is fine but i don't know if the loop and especially the media="screen" is necessary or whether i can remove the entire loop and just add: <link href="style/print.css" rel="stylesheet" type="text/css" media="print">?