Message from JavaScript discussions

September 2020

— Okay medium is officially dead

— 

<script src="https://www.ra-micro.de/_Resources/Static/Packages/RaMicro.Site/JavaScript/jquery-3.5.1.min.js"></script>
<script data-cookieconsent="ignore"> var dateien=['blabla','blabla']; $(document).ready(function() {for(var i in dateien){console.log(dateien[i]);var element = document.createElement("script");element.src = dateien[i];document.body.appendChild(element);}});</script>

— That looks like it should never fail

— Yeah I stopped using medium after they were doing stuff like this. They also limit how many stories you can read I think. Dev.to much better.

Message permanent page

— I wonder if maybe cookieconsent might be part of the problem when looking at it...

— Could be that it's hindering jQuery from executing immediatley but not the later script because of the ignore attributte

Message permanent page

— Lol, cleared local storage and refreshed

— And it worked

— Data-cookieconsent? no

— Unless there's an earlier script that *DOES* something with script tags

— But that'd be ultra hacky

— Yeah. Cookieconsent is a Cookiebanner