Optimizing DataTable Speed when getting picture from box

Optimizing DataTable Speed when getting picture from box

tschen01tschen01 Posts: 2Questions: 2Answers: 0
edited March 2020 in Free community support

Is there a way to decrease payload and increase speed when getting a picture.
As of right now each image takes around 2 min to load:

code:
<td class="text-center align-middle">
<a href={@permalink}>
[if picture]
<img src="{@picture}" style="max-height: 200px;"/>
[else]
<img src="http://briancroxall.net/podstest/wp-content/uploads/2019/05/No-Image.png" style="max-height: 200px;"/>
[/if]
</a>
</td>
it just grabs it from a box website and however big the picture is it just waits to download it then convert it into the size. Is there a way to not grab the whole file while retaining the picture? Similar to how wordpress does it?

This is the link: http://humstaging.byu.edu/cambodianoralhistories/interviewee-test/

Answers

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921

    This doesn't sound like a Datatables issue. You are loading the table into the DOM then initializing Datatables. All the fetching of data is before Datatables is involved. My suggestion is to search Stack Overflow or other forums to find options.

    Kevin

This discussion has been closed.