10 examples of 'reload-every' in JavaScript

Every line of 'reload-every' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
180function reload(interval) {
181 setTimeout(function () {
182 window.location.reload(true);
183 }, interval || 5000);
184}
109function scheduleReload() {
110 updateSessionData({
111 reload: true
112 });
113 reloadHandle = window.setTimeout(function () {
114 window.location.reload();
115 }, 5000);
116}
165function reload(time) {
166 setTimeout(function(){
167 location.reload();
168 }, time);
169}
143reload() {
144 for (const transport of this.values()) {
145 transport.reload();
146 }
147}
6function reload(done) {
7 server.reload();
8 done();
9}
117function reload(callback) {
118 Update.reload(function(err, data) {
119 var changes = load_complete(err, data);
120 callback && callback(data, changes);
121 })
122}
56function _enableReloads() {
57 _reloadingDisabled -= 1;
58
59 if (_pendingReloads.length > 0) {
60 _reload(_pendingReloads.shift());
61 }
62}
117(function reload($) {
118 $.ajax({
119 'url': '/reload-content/'
120 , 'cache': false
121 , 'success': function (text) {
122 if (text === 'css') {
123 $('style,link').remove();
124 $('').appendTo('head');
125 } else if (text === 'content') {
126 setTimeout(function () {
127 window.location.reload(true);
128 }, 200);
129 } else {
130 if (text && currentPath !== text) {
131 doReload = false;
132 window.location = text;
133 }
134 }
135 }
136 , 'complete': function () {
137 setTimeout(function () {
138 if (doReload) {
139 reload($);
140 }
141 }, 1000);
142 }
143 });
144})($);
16var reload = function reload() {
17 plugins.livereload.reload('/');
18};
87function reloadAfter($seconds) {
88 setTimeout(function(){
89 window.location.replace("/");
90 }, $seconds*1000);
91}

Related snippets