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
11 months 3 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
    • Enabling this option introduces structured indentation which makes the code easier to read, but increases page size.
  • Remove all comments (option)
    • Enabling this option removes all HTML comments (which are not part of JavaScript conditional statements), resulting in s a smaller page for your visitors to download.
  • Sanitize White Space (option)
    • Enabling this option removes carriage returns and unnecessary white-space, resulting in a smaller page for your visitors to download.
    • Example Savings: Default Joomla blog page size is reduced in size from 4.5KB to 4.2KB.

  Download ScriptsDown 1.18

Bug Reports

Documentation: Online

Read article...

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

More
5 months 4 weeks 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