| OLD | NEW |
| 1 var hideElements = function() | 1 var hideElements = function() |
| 2 { | 2 { |
| 3 // no need to invoke if already invoked on another event | 3 // no need to invoke if already invoked on another event |
| 4 if ({{BRIDGE}}.isElementsHidden()) | 4 if ({{BRIDGE}}.isElementsHidden()) |
| 5 { | 5 { |
| 6 {{DEBUG}} console.log('already hidden, exiting'); | 6 {{DEBUG}} console.log('already hidden, exiting'); |
| 7 return; | 7 return; |
| 8 } | 8 } |
| 9 | 9 |
| 10 // hide using element visibility (to be replaced with script body) | 10 // hide using element visibility (to be replaced with script body) |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 }); | 35 }); |
| 36 | 36 |
| 37 // DOMContentLoaded event | 37 // DOMContentLoaded event |
| 38 document.addEventListener('DOMContentLoaded', function() | 38 document.addEventListener('DOMContentLoaded', function() |
| 39 { | 39 { |
| 40 {{DEBUG}} console.log('DOMContentLoaded() event fired'); | 40 {{DEBUG}} console.log('DOMContentLoaded() event fired'); |
| 41 hideElements(); | 41 hideElements(); |
| 42 }, false); | 42 }, false); |
| 43 | 43 |
| 44 }; | 44 }; |
| OLD | NEW |