Web Application Performance

Ray Turner
Ray Turner used Ask the Experts™
Which is faster?

(ASP.Net) ASPxImage vs (HTML) Image
(ASP.Net) ASPxLabel vs (HTML) Div

I would like to use the that is more efficient (speed & memory).
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chief Technology Ninja
Distinguished Expert 2018
Hi Ray,

I am not sure about your exact scenario but if I can do something using a label i.e. text over an image, I will always go with the label (One of the reason FontAwesome took over the web world).

Most Valuable Expert 2015
Distinguished Expert 2018

Create two test scenarios for the alternatives, do the measures, and you have the answer.
David FavorFractional CTO
Distinguished Expert 2018

There's no real way to know this.

You'd have to somehow test every browser in existence, then retest each new version, as memory usage per element might change.

Since you don't state what's in your image or div, again no way to really answer.

Note: If you're referring to written text in an image verses div, the image will always take more memory. Also, images don't scale like fonts. If you use an image for written text, each time a user resizes the image, text will pixelate into ugliness or many times become completely unreadable.
Ray TurnerSenior Consultant


Thanks to you all.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial