Jpg viewer - order of loading pages is ascending, which causes user to wait until all pages are loaded

Hi, we use jpg viewer. page preload count is set to 2 by default.
Viewer loads first 2 pages initially.
Now if user scrolls to say page no. 200, then viewer attempts to load pages from 3 to 200, sequentially, which lead to lot of wait time based on server loads for user to see content of page interested in e.g. 200 in this case.
Can the operation of loading pages be optimized ? one option can be loading pages descending.
e.g. in this case 200 to 3 and in parallel ?

@sachinerande

Could you please provide more details about the specific viewer you are using and the environment setup? Additionally, are you looking for a code solution or a configuration change?

Groupdocs viewer for .NET. We use Jpg Viewer. On following version.

	<PackageReference Include="GroupDocs.Viewer" Version="24.12.0" />
	<PackageReference Include="GroupDocs.Viewer.UI" Version="6.0.30" />
	<PackageReference Include="GroupDocs.Viewer.UI.Api.Local.Cache" Version="6.0.5" />
	<PackageReference Include="GroupDocs.Viewer.UI.Api.Local.Storage" Version="6.0.4" />
	<PackageReference Include="GroupDocs.Viewer.UI.SelfHost.Api" Version="6.0.32" />
	<PackageReference Include="GroupDocs.Viewer.UI.Api.AzureBlob.Storage" Version="6.0.6" />

@vladimir.litvinchik : fyi

@sachinerande

Thank you for sharing the package versions. I’m able to reproduce this issue. We’ll take a look and consider possible improvements. The issue ID is VIEWERNET-5174

1 Like