Skip to content

Commit a773114

Browse files
committed
[design] change page fade in from load event to timer to prevent slow netweork delaying content loading
1 parent 02171b8 commit a773114

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nightTab",
3-
"version": "5.27.2",
3+
"version": "5.28.0",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
55
"main": "index.js",
66
"scripts":{

‎src/js/ready.js‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
varready=(function(){
22

3+
var_timer=null;
4+
35
varbind={};
46

57
bind.loaded={
68
func: function(){
79
render.loaded();
8-
bind.loaded.remove();
9-
},
10-
add: function(){
11-
window.addEventListener("load",bind.loaded.func,false);
10+
clearTimeout(_timer);
1211
},
13-
remove: function(){
14-
window.removeEventListener("load",bind.loaded.func);
12+
timer: function(){
13+
_timer=setTimeout(bind.loaded.func,300);
1514
}
1615
};
1716

@@ -23,7 +22,7 @@ var ready = (function(){
2322
};
2423

2524
varinit=function(){
26-
bind.loaded.add();
25+
bind.loaded.timer();
2726
};
2827

2928
// exposed methods

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="5.27.2";
3+
varcurrent="5.28.0";
44

55
varname="Zonked Tarsier";
66

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "5.27.2",
5+
"version": "5.28.0",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)