Skip to content

Commit

Permalink
attempted to reduce loading time
Browse files Browse the repository at this point in the history
found a few tutorial-suggestions about minimizing the number/size of libraries loaded at startup. not sure that they're helping much.

i think the mid-term resolution here will be to make a nice-looking entry animation for the app. within a few seconds, the app could introduce itself and provide a glimpse of what you can do. by then, the loading should be complete, and you probably didn't even notice the wait.
  • Loading branch information
connectuum committed Dec 24, 2021
1 parent e030412 commit 65e2770
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 52 deletions.
29 changes: 5 additions & 24 deletions solution/Poemdown.Blaze/Poemdown.Blaze.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,14 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<PropertyGroup>
<BlazorEnableTimeZoneSupport>false</BlazorEnableTimeZoneSupport>
<BlazorWebAssemblyPreserveCollationData>false</BlazorWebAssemblyPreserveCollationData>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<Compile Remove="wwwroot\sample-data\**" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Remove="wwwroot\sample-data\**" />
</ItemGroup>

<ItemGroup>
<None Remove="wwwroot\sample-data\**" />
</ItemGroup>

<ItemGroup>
<Content Remove="wwwroot\sample-data\**" />
<Content Remove="wwwroot\favicon.ico" />
<Content Remove="wwwroot\icon-192.png" />
</ItemGroup>

<ItemGroup>
<_ContentIncludedByDefault Remove="wwwroot\sample-data\weather.json" />
<_ContentIncludedByDefault Remove="wwwroot\css\bootstrap\bootstrap.min.css" />
<_ContentIncludedByDefault Remove="wwwroot\css\bootstrap\bootstrap.min.css.map" />
</ItemGroup>

</Project>
40 changes: 12 additions & 28 deletions solution/Poemdown.Blaze/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:41758",
"sslPort": 44353
}
},
"profiles": {
"Poemdown.Blaze": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "https://localhost:7202;http://localhost:5004",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
"profiles": {
"Poemdown.Blaze": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "https://localhost:7202;http://localhost:5004",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

0 comments on commit 65e2770

Please sign in to comment.