Support Webkit's enable-page-cache setting
See: http://webkit.org/blog/427/webkit-page-cache-i-the-basics/ Off by default, as this was always the case with Vimprobable. When turned on, seems to improve my own browsing experience a little. I am sure it's more than just a placebo. :)
This commit is contained in:
parent
24306a57ee
commit
b20c49b83d
2
config.h
2
config.h
|
@ -16,6 +16,7 @@ char startpage[1024] = "http://www.vimprobable.org/";
|
|||
char useragent[1024] = "Vimprobable2/" VERSION;
|
||||
static const gboolean enablePlugins = TRUE; /* TRUE keeps plugins enabled */
|
||||
static const gboolean enableJava = TRUE; /* FALSE disables Java applets */
|
||||
static const gboolean enablePagecache = FALSE; /* TRUE turns on the page cache. */
|
||||
|
||||
/* appearance */
|
||||
char statusbgcolor[] = "#000000"; /* background color for status bar */
|
||||
|
@ -148,6 +149,7 @@ static Setting browsersettings[] = {
|
|||
{ "useragent", useragent, "user-agent", FALSE, FALSE, FALSE, FALSE },
|
||||
{ "scripts", NULL, "enable-scripts", FALSE, TRUE, FALSE, FALSE },
|
||||
{ "plugins", NULL, "enable-plugins", FALSE, TRUE, FALSE, FALSE },
|
||||
{ "pagecache", NULL, "enable-page-cache", FALSE, TRUE, FALSE, FALSE },
|
||||
{ "java", NULL, "enable-java-applet", FALSE, TRUE, FALSE, FALSE },
|
||||
{ "images", NULL, "auto-load-images", FALSE, TRUE, FALSE, FALSE },
|
||||
{ "shrinkimages", NULL, "auto-shrink-images", FALSE, TRUE, FALSE, FALSE },
|
||||
|
|
1
main.c
1
main.c
|
@ -2072,6 +2072,7 @@ setup_settings() {
|
|||
g_object_set((GObject*)settings, "enable-scripts", enablePlugins, NULL);
|
||||
g_object_set((GObject*)settings, "enable-plugins", enablePlugins, NULL);
|
||||
g_object_set((GObject*)settings, "enable-java-applet", enableJava, NULL);
|
||||
g_object_set((GObject*)settings, "enable-page-cache", enablePagecache, NULL);
|
||||
filename = g_strdup_printf(USER_STYLESHEET);
|
||||
filename = g_strdup_printf("file://%s", filename);
|
||||
g_object_set((GObject*)settings, "user-stylesheet-uri", filename, NULL);
|
||||
|
|
Loading…
Reference in New Issue