A
A
Alixx2018-03-18 12:03:17
Chromium
Alixx, 2018-03-18 12:03:17

How to make images for the site loaded from the user's computer (downloaded to him when he first visits the page of the site)?

Good afternoon. The situation is this.. A site is being written, the pages of which, for the most part, will contain a lot of pictures (it is at once on the page that they will all be displayed, and not loaded later by Ajax). To reduce the load, you need to make sure that the first time you go to any of the pages, the pictures are downloaded to the user's computer. And on subsequent visits to these pages, so that the pictures are loaded already from the user's computer. Tell me possible options for solving such a problem
PS: We have found three options so far:
1. Write an extension for the browser
This option is not like the fact that you need to write several such extensions - for each browser your own. And then still constantly finish when updating the browser.
2. Create a browser client
The same browser as the one you usually use, only it will open only our site and automatically download / upload pictures. Maybe more functionality will need to be added in the future. With this option, additional questions arise: should we take chromium as a basis? or will webbrowser in c# (sp. MS Visual Studio 64x 2015) be enough? what other ways are there?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
#
#, 2018-03-18
@alixx

option 2, but:
- in forms and wpf - the built-in engine is IE, and for sure there are sites that are already putting it in terms of support - recently there was a question about the built-in browser in C # and the site ... (bmw in the Russian Federation or what? ) in general 100% the site worked in chrome, fox, age, but not in IE!
- in UWP, the built-in webview is already Age, with all the ensuing amenities
, what is the result? if you need a classic desktop application for Windows in C#, with a built-in modern browser, and UWP is not suitable (you want to grab win 7 too) - your choice is either CEF# or GeckoFx (embeddable fox, but either is updated much less often, alas)
ps oh yes .. I even managed to forget - say you are doing your site? then you just have to sharpen it for compatibility with IE too, well, then your hands are completely untied .. on the client .. on the site, it’s possible just the opposite - it will be more confused
pps and it’s better to raise the studio until 2017, if there are no special restrictions
ppps if you do bet on built-in IE - write, there is also an insidious topic - by default, built-in IE is 2 versions lower than just IE launched by handles - troubles of the "bloody enterprise" .. I'll rummage through the bins and throw a registry branch where this can be corrected .. essentially, for each executable with built-in IE, regardless of technology (it's always an ActiveX component in fact), in order to upgrade it to the latest version, you need to make an entry in the registry .. such garbage ...

G
GavriKos, 2018-03-18
@GavriKos

Long ago, in the era of dial-up, some browser games did this.
The user downloads the archive, unpacks it on his hard drive, and in the profile properties specifies his local path to this folder. And then the site built the urls of the images taking into account this path.
This is purely so, in the treasury of methods.

L
lam0x86, 2018-03-20
@lam0x86

Look towards Service Workers.
https://developer.mozilla.org/ru/docs/Web/API/Serv...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question