if you are doing improper onpage optimization then it will become disadvantage for you... you must follow the proper guidelines for doing onpage optimization like
-Keyword density
-alt tags
-text/HTML ratio
-proper meta description
-no keyword stuffing
-H1 tag
-etc