Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function runMyScripts() {
- // my jQuery Scripts go here like calling plugins that have to be called more than one time
- "js/footer.min.js", <---- LIKE SO
- "js/footer2.min.js"
- }
- $(document).ready(function() {
- // initialization scripts go here
- "js/footer.min.js", <---- AGAIN
- "js/footer2.min.js"
- runMyScripts();
- }).ajaxComplete(function(){
- // note here I just used the jQuery "selection" that was already made for the ready event to call this event
- runMyScripts();
- });
- </script>
- function runMyScripts() {
- // my jQuery Scripts go here like calling plugins that have to be called
- // more than one time
- }
- $(document).ready(function() {
- // initialization scripts go here
- runMyScripts();
- }).ajaxComplete(function(){
- // note here I just used the jQuery "selection" that was already
- // made for the ready event to call this event
- runMyScripts();
- });
Add Comment
Please, Sign In to add comment