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
12
votes
2 answers

Python + Tornado Restart after editing files

I just start learning Python + Tornado for my web servers. Every time I modify some code on my python scripts or templates I have to stop the in my terminal (CTRL+C) and restart it (python server.py) and I want a more effective way to do this, that…
danielfrg
  • 2,597
  • 2
  • 22
  • 23
12
votes
3 answers

How to Reload a Python3 C extension module?

I wrote a C extension (mycext.c) for Python 3.2. The extension relies on constant data stored in a C header (myconst.h). The header file is generated by a Python script. In the same script, I make use of the recently compiled module. The workflow in…
user1069152
  • 495
  • 5
  • 14
12
votes
2 answers

AngularJS with ui.router: reload page when clicking the same state link

I just got a request from our QA team, which I think sounds ridiculous. Here it goes: suppose you are already on the 'about' state/page in the angular-based app, and when you click on the 'about' state url again from the top menu, you want the…
TonyW
  • 18,375
  • 42
  • 110
  • 183
12
votes
3 answers

how to reload routes /config/routes/* in rails 4?

How to force rails 4 to reload all route files? That is without having to restart the application to make the routes from /config/routes/.rb get loaded* I did a split them up in /config/routes/.rb but these /config/routes/ files are not…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
12
votes
5 answers

Is there a way to force Yii to reload module assets on every request?

My website is divided into separate modules. Every module has it's own specific css or js files in /protected/modules/my_module/assets/css or js for js files. Yiis assets manager creates folder when I first use page that uses my assets.…
Joe
  • 2,551
  • 6
  • 38
  • 60
11
votes
2 answers

535 Ways to Reload the page with JavaScript - what are the consequences?

Someone has listed 535 different ways to reload a page in Javascript: http://www.phpied.com/files/location-location/location-location.html For example: location = location location = location.href location = window.location location =…
donohoe
  • 13,867
  • 4
  • 37
  • 59
11
votes
6 answers

Galleria theme occasionally not loading

I am using the Galleria slideshow on my site, but I've noticed an error that seems to happen very randomly. Most of the time the slideshow loads correctrly but once in a while I get this error: Uncaught Error: Fatal error: Theme at…
odle
  • 5,172
  • 8
  • 29
  • 33
11
votes
8 answers

VueJS reload if in the same route

We want that if we click on router-link which is the same page, the page will reload. How can that be done? watch->$route doesn't invoke if the page stays the same
Himberjack
  • 5,682
  • 18
  • 71
  • 115
11
votes
2 answers

Angular data loss on reload using BehaviorSubject

I'm using a data service to send the user data to the app and display the username in my header component. If I sign in in my app with login component the username is correctly displayed, but when I reload the page the user data disappears. on login…
ufollettu
  • 822
  • 3
  • 19
  • 45
11
votes
4 answers

How to clear a UICollectionViewCell on reload?

I have an issue where the data presented in a UICollectionView overwrites the label and the cell view is not getting cleared. This image shows the issue, IE: My UICollectionViewCell which is constructed like so; // in…
zardon
  • 1,601
  • 4
  • 23
  • 46
11
votes
4 answers

Prevent cached iPhone webapp from reloading (scrolling to top)

I have an iPhone webapp that uses a cache manifest to work offline. I add the webapp to my home screen, use it (say scroll to a certain location on a page), then go back to homescreen. When I open the app again, for a brief moment I see where I used…
Alec Jacobson
  • 6,032
  • 5
  • 51
  • 88
11
votes
2 answers

imp.reload - NoneType object has no attribute 'name'

The following code: def _IMPORT_(path) path = abspath(path) namespace = path[len(getcwd())+1:].replace('/', '_').strip('\\/;,. ') print(path) print(namespace) loader = importlib.machinery.SourceFileLoader(namespace, path+'.py') …
Torxed
  • 22,866
  • 14
  • 82
  • 131
11
votes
3 answers

How can I run this script when the tab reloads (chrome extension)?

So i'd like to run a script when the tab reloads in a specified URL. It almost works, but actually id doesn't :) This is my manifest file: { "manifest_version": 2, "name": "Sample Extension", "description": "Sample Chrome Extension", "version":…
10
votes
3 answers

Chrome cancels URL_REQUEST after exactly 3 seconds

Ok, so this is a weird one. I am working on a php script that does a lot of work when requested (image processing). So this is not unusual it issues a response in 10 seconds, up to 30 seconds sometimes : it's a long script, and this is important for…
Bedu33
  • 613
  • 1
  • 6
  • 17
10
votes
2 answers

Reload Adsense ads, or have to use DFP?

I've found a number of sites that explain how to make a DFP ad reload/refresh after 30-120 seconds, but none of them explain if it's possible to do with an Adsense ad. I've tried DFP - it's very confusing compared to Adsense. My current Adsense…
Dave
  • 28,833
  • 23
  • 113
  • 183