i working on java app, works fine , all, @ frontend, using thymeleaf (first time use it, moving on primefaces).
what ive noticed page loads (working locally) pretty fast, expected, since information not reelevant , no db being used now.
what surprises me images load 2 seconds later, have no idea why, stored locally on app assets folder.
i incluiding them way:
<img th:src="@{/assets/images/myimage.png}" />
is there anyway make faster? (of course, later set more memory jvm, sort of stuff shouldnt take long...)
any caching or faster ways?
i using spring 4 mvc
thanks.
there many variable not going list of them few:
- distance between client , server
- efficiency of application
- size of images
- browser , extensions/plugins attached it
- power of server
- power of client machine
- delivery method
- potential javascripts manage loading of images
- malware
as mentioned there lot more haven't listed , process of elimination.
some things have on our application avoids delay in images include
- server memory increase 512 1024
- changing location of server more local source
- changing location application sourcing images (faster raid disks)
- delaying full page display until preloaded on client machine (look flash of unstyled content fixes)
- performance improvements on web application itself
what need explore each option , start improving on , results need.
fyi if want avoid loading images server have them hosted on cdn speed of transfer.
Comments
Post a Comment