Auto Minify javascript removes element

hi, i have a Javascript that creates a list

  • from a loop to a HTML unordered list

      if the (speed>optimization>content optimization>auto minify) is enabled it removes the list
    • from the minified JS why is that? Is there a way around this aside from disabling the auto minify for JavaScript?

  • Hey there,

    Have you tried running your Javascript code through a syntax checker? If the syntax checker detects issues with your code, then this could possibly explain why Auto-minify removed part of your Javascript that should have not been removed. I would suggest taking a look at this document to troubleshoot your problem:

    This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.