Questions tagged [reload]

reloading is the process of re-requesting and re-rendering the currently displayed page

Reloading is the process of re-requesting and re-rendering the currently displayed page, triggered for example by JavaScript or the user. Use this tag to mark questions related to forcing the browser to reload or in context of bugs that occur specifically when reloading a page.

2765 questions
2726
votes
20 answers

How do I refresh a page using JavaScript?

How do I refresh a page using JavaScript?
luca
  • 36,606
  • 27
  • 86
  • 125
2142
votes
18 answers

How to reload .bashrc settings without logging out and back in again?

If I make changes to .bashrc, how do I reload it without logging out and back in?
Jed Daniels
  • 24,376
  • 5
  • 24
  • 24
1081
votes
22 answers

How do I unload (reload) a Python module?

I have a long-running Python server and would like to be able to upgrade a service without restarting the server. What's the best way do do this? if foo.py has changed: unimport foo <-- How do I do this? import foo myfoo = foo.Foo()
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
396
votes
22 answers

Can you force Vue.js to reload/re-render?

Just a quick question. Can you force Vue.js to reload/recalculate everything? If so, how?
Dave
  • 12,117
  • 10
  • 46
  • 52
310
votes
13 answers

How to reload or re-render the entire page using AngularJS

After rendering the entire page based on several user contexts and having made several $http requests, I want the user to be able to switch contexts and re-render everything again (resending all $http requests, etc). If I just redirect the user…
andersonvom
  • 11,701
  • 4
  • 35
  • 40
263
votes
10 answers

JavaScript hard refresh of current page

How can I force the web browser to do a hard refresh of the page via JavaScript? Hard refresh means getting a fresh copy of the page AND refresh all the external resources (images, JavaScript, CSS, etc.).
leepowers
  • 37,828
  • 23
  • 98
  • 129
196
votes
18 answers

Do we have router.reload in vue-router?

I see in this pull request: Add a router.reload() Reload with current path and call data hook again But when I try issuing the following command from a Vue component: this.$router.reload() I get this error: Uncaught TypeError:…
Saurabh
  • 71,488
  • 40
  • 181
  • 244
191
votes
8 answers

How to reload a clojure file in REPL

What is the preferred way of reloading functions defined in a Clojure file without having to restart the REPL. Right now, in order to use the updated file I have to: edit src/foo/bar.clj close the REPL open the REPL (load-file…
pkaleta
  • 2,129
  • 2
  • 13
  • 9
163
votes
18 answers

Button that refreshes the page on click

I need a button that will refresh the page on the user's click. I tried this: or But neither worked.
Stefan Đorđević
  • 1,781
  • 3
  • 15
  • 14
161
votes
4 answers

gunicorn autoreload on source change

Finally I migrated my development env from runserver to gunicorn/nginx. It'd be convenient to replicate the autoreload feature of runserver to gunicorn, so the server automatically restarts when source changes. Otherwise I have to restart the server…
Paolo
  • 20,112
  • 21
  • 72
  • 113
119
votes
8 answers

location.reload(true) is deprecated

I know that it is not ideal to reload an Angular Single Page Application. However there is a place that I need to reload the full application. TSLint says that reload is deprecated. Is there any alternative for this?
Dilshan Liyanage
  • 4,440
  • 2
  • 31
  • 33
117
votes
1 answer

How to reload page the page with pagination in Angular 2?

How can I reload the current page on Angular 2? if iam in page 2 (pagination) and refresh the page it will show page 1(URL pageload) but i want i refresh the page 2 and it will appear in page 2
FABI1987
  • 1,179
  • 2
  • 7
  • 3
113
votes
22 answers

How do I know that the UICollectionView has been loaded completely?

I have to do some operation whenever UICollectionView has been loaded completely, i.e. at that time all the UICollectionView's datasource / layout methods should be called. How do I know that?? Is there any delegate method to know UICollectionView…
Jirune
  • 2,310
  • 3
  • 21
  • 19
105
votes
2 answers

Preferred method to reload page with JavaScript?

which way to reload a current page (using a button) would you prefer? 1 2 3
Mel
  • 1,061
  • 2
  • 8
  • 5
105
votes
14 answers

Is there an easy way to reload css without reloading the page?

I'm trying to make a live, in-page css editor with a preview function that would reload the stylesheet and apply it without needing to reload the page. What would be the best way to go about this?
Stephen Belanger
  • 6,251
  • 11
  • 45
  • 49
1
2 3
99 100