• Resolved seo90

    (@seo90)


    Hello,

    I am using the latest version of the plugin and when minifying one of the JS files I get the title error.

    If I delete this JS, there is no problem, so I have intuited that it is because of the that the js file contains…

    I leave here the conflicting js file:

    function createCircleChart(percent, color, size, stroke, symboll) {
        let svg = 

    <svg class=”mkc_circle-chart” viewbox=”0 0 36 36″ width=”${size}” height=”${size}” xmlns=”http://www.w3.org/2000/svg”&gt;
    <path class=”mkc_circle-bg” stroke=”#eeeeee” stroke-width=”${stroke * 0.5}” fill=”none” d=”M18 2.0845
    a 15.9155 15.9155 0 0 1 0 31.831
    a 15.9155 15.9155 0 0 1 0 -31.831″/>
    <path class=”mkc_circle” stroke=”${color}” stroke-width=”${stroke}” stroke-dasharray=”${percent},100″ stroke-linecap=”round” fill=”none”
    d=”M18 2.0845
    a 15.9155 15.9155 0 0 1 0 31.831
    a 15.9155 15.9155 0 0 1 0 -31.831″ />
    <text class=”mkc_info” x=”50%” y=”50%” alignment-baseline=”central” text-anchor=”middle” font-size=”8″ style=”fill:#333″>${symboll}${percent}%</text>
    </svg>`;
    return svg;
    }

    let charts = document.getElementsByClassName(‘mkCharts’);

    for(let i=0;i<charts.length;i++) {
    let chart = charts[i];
    let percent = chart.dataset.percent;
    let color = (‘color’ in chart.dataset) ? chart.dataset.color : “#f2522e”;
    let size = (‘size’ in chart.dataset) ? chart.dataset.size : “100”;
    let stroke = (‘stroke’ in chart.dataset) ? chart.dataset.stroke : “1”;
    let symboll = (‘symboll’ in chart.dataset) ? chart.dataset.symboll : “”;
    charts[i].innerHTML = createCircleChart(percent, color, size, stroke, symboll);
    }`

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter seo90

    (@seo90)

    I see that I can’t use inverted commas as that’s what the forum uses to add code… I’ve posted it in pastebin

    https://pastebin.com/vDN41a91

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @seo90

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please try and switch the Minify method in Performance>Minify>JS to Combine only instead of Combine&Minify, save all settings and purge the cache and see if the problem persists?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘net::ERR_ABORTED 500 minify js’ is closed to new replies.