Issue
School project. At this moment I generate ad from database by running ajax JS request to servlet when document is loaded and append parsed data to conrete div element. Is this a good practice?
Solution
I'd say "yes". Because we're talking about ads, there are two very good things about this approach.
It's asynchronous a.k.a., "non-blocking". Users will not be waiting around for ad content as a prerequisite for using the core features of the site.
It keeps the ad content out of the server response that will be indexed by search engines.
I'd advise making sure that your final setup is truly "non-blocking" for users; they don't wait needlessly for ad content. Ensuring the ad calls happen after the page load event.
Answered By - Brian Swisher
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.