protected function maybeCompressInlineJsCode($html)
    {
        if (($benchmark = !empty($this->options['benchmark']) && $this->options['benchmark'] === 'details')) {
            $time = microtime(true);
        }
        $html = (string) $html; // Force string value.

        if (isset($this->options['compress_js_code'])) {
            if (!$this->options['compress_js_code']) {
                $disabled = true; // Disabled flag.
            }
        }
        if (isset($this->options['compress_inline_js_code'])) {
            if (!$this->options['compress_inline_js_code']) {
                $disabled = true; // Disabled flag.
            }
        }
        if (!$html || !empty($disabled)) {
            goto finale; // Nothing to do.
        }
        if (($html_frag = $this->getHtmlFrag($html)) && ($js_tag_frags = $this->getJsTagFrags($html_frag))) {
            foreach ($js_tag_frags as $_js_tag_frag_key => $_js_tag_frag) {
                if (!$_js_tag_frag['exclude'] && $_js_tag_frag['script_js']) {
                    $js_tag_frags_script_js_parts[]                             = $_js_tag_frag['all'];
                    $js_tag_frags_script_js_part_placeholders[]                 = '%%htmlc-'.$_js_tag_frag_key.'%%';
                    $js_tag_frags_script_js_part_placeholder_key_replacements[] = $_js_tag_frag_key;
                }
            } // unset($_js_tag_frag_key, $_js_tag_frag); // Housekeeping.

            if (isset($js_tag_frags_script_js_parts, $js_tag_frags_script_js_part_placeholders, $js_tag_frags_script_js_part_placeholder_key_replacements)) {
                $html = $this->replaceOnce($js_tag_frags_script_js_parts, $js_tag_frags_script_js_part_placeholders, $html);

                foreach ($js_tag_frags_script_js_part_placeholder_key_replacements as &$_js_tag_frag_key_replacement) {
                    $_js_tag_frag = $js_tag_frags[$_js_tag_frag_key_replacement];

                    $_js_tag_frag_key_replacement = $_js_tag_frag['if_open_tag'];
                    $_js_tag_frag_key_replacement .= $_js_tag_frag['script_open_tag'];
                    $_js_tag_frag_key_replacement .= $this->compressInlineJsCode($_js_tag_frag['script_js']);
                    $_js_tag_frag_key_replacement .= $_js_tag_frag['script_closing_tag'];
                    $_js_tag_frag_key_replacement .= $_js_tag_frag['if_closing_tag'];
                } // unset($_js_tag_frag_key_replacement, $_js_tag_frag); // Housekeeping.

                $html = $this->replaceOnce($js_tag_frags_script_js_part_placeholders, $js_tag_frags_script_js_part_placeholder_key_replacements, $html);

                if ($benchmark) {
                    $this->benchmark->addData(
                        __FUNCTION__,
                        compact(
                            'js_tag_frags',
                            'js_tag_frags_script_js_parts',
                            'js_tag_frags_script_js_part_placeholders',
                            'js_tag_frags_script_js_part_placeholder_key_replacements'
                        )
                    );
                }
            }
        }
        finale: // Target point; finale/return value.

        if ($html) {
            $html = trim($html);
        } // Trim it up now!

        if ($benchmark && !empty($time) && $html && empty($disabled)) {
            $this->benchmark->addTime(
                __FUNCTION__,
                $time, // Caller, start time, task performed.
                sprintf('compressing inline JS in checksum: `%1$s`', md5($html))
            );
        }
        return $html; // With possible compression having been applied here.
    }