Thanks to everyone that contributes.
Best regards,
Mike
I found it! Ouch, stupid hurts. I had Better WordPress Minify active at the same time as Autoptimize. I am probably lucky that I did’t break my website. Thanks for looking at this. If you have any recommendations please let me know.