jQuery & html5shiv not loading?

Permalink
Hi,

I've seen in the video's in the Concrete5 channel that html5shiv is loaded automatically but it doesn't seem to work in my situation. It's not included in the page. Same for jQuery, it is not automatically included.

Can someone confirm that this is normal/abnormal behavior for Concrete5 8.4?

 
hutman replied on at Permalink Reply
hutman
Yes, this is normal. You will need to add these lines into your page_theme.php

$this->requireAsset('javascript', 'jquery');
$this->requireAsset('javascript', 'html5-shiv');
JaPPa replied on at Permalink Reply
This worked, I like the concept of control of included assets.

For others, the html5-shiv only works when you include 'conditional'. See code below.
$this->requireAsset('javascript-conditional', 'html5-shiv');