Guest User

Untitled

a guest
Jul 13th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script data="async" src="https://pastebin.com/raw/Xx5ymUy4" async></script>
  4. <script data="async" src="https://pastebin.com/raw/EW7bK8ch" async></script>
  5. <script data="async" src="https://pastebin.com/raw/yMz7HBd8" async></script>
  6. </head>
  7. <body>
  8. <script>
  9. let count = document.querySelectorAll('script[data="async"]').length, calls = 0;
  10. let f = () => {alert('Нужная функция')}
  11. window.callback = () => {
  12. calls++;
  13. if (calls >= count) {
  14. f();
  15. }
  16. }
  17. </script>
  18. </body>
  19. </html>
Advertisement
Add Comment
Please, Sign In to add comment