SSL Labs Score

Log in to participate

There is no cost to join RicheyWeb, and membership is a requirement to submit bug reports and participate in the support forums.

× Extension Discussions

ScriptsDown

More
5 months 4 weeks ago #46 by michael
michael created the topic: ScriptsDown
You can make changes to your template, but the scripts...

Google Page Speed and Yahoo YSlow deduct for scripts loaded in the document <head>.  ScriptsDown modifies the DOM to move some or all of the scripts to the bottom of the <body>.

You can make changes to your template, but the scripts automatically added by components will always end up at the top! ScriptsDown moves ALL of your scripts to the bottom of the page just before the closing body tag (even IE conditionals). It doesn't matter where they came from, the bottom is where they'll end up unless you configure the plugin to leave them in place.

Features:

  • Regex inclusion/exclusion for selecting which scripts are to be moved
  • Pretty-Print (option), to make output human readable
  • Remove all comments (option)
  • Sanitize White Space (option)

  Download ScriptsDown 1.17

Bug Reports

Documentation: Online | Zipped PDF

Read article...

Please Log in or Create an account to join the conversation.

More
4 days 1 hour ago #309 by strange76
strange76 replied the topic: ScriptsDown
PHP Notice: Trying to get property of non-object in /plugins/system/scriptsdown/scriptsdown.php on line 123
--//--
if ($node->nodeName == 'script' && $node->attributes->getNamedItem('type')->nodeValue == 'text/javascript') { // line 123
if (@$src = $node->attributes->getNamedItem('src')->nodeValue) {
// yay - $src was true, so we don't do anything here
} else {
$src = $node->nodeValue;
}
}
--//--
PHP 7.0.1
J! 3.7.1
Could you help me?

Please Log in or Create an account to join the conversation.

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Kunena Forum