The Sourcerer Joomla-extension allows to add css styling or javascript in the head section of one html page. This works pretty well in Joomla-modules. When trying to add scripts in Joomla-articles, the scripts load on all pages and at the top of the script-list (before jquery.js), so that the scripts don't work, because they need to be placed after jquery.js. Is there some workaround to load scripts only on pages within an article is displayed?
{source}
<?php
$doc->addStyleSheet( JURI::root( true ).'/path/to/your/file.css' );
$doc->addScript( JURI::root( true ).'/path/to/your/file.js' );
?>
{/source}