ورود

View Full Version : سوال: رفع خطای اعلام شده در gtmetrix.com



mehbod.rayaneh
چهارشنبه 18 بهمن 1391, 16:01 عصر
سلام دوستان
خسته نباشید
آقا من 1 وب با css و html طراحی کردم!
الان میخوام با سایت کمک http://gtmetrix.com روی کداش کار کنم!
خیلی ایراداتش را برطرف کردم ... ولی 1 اروری میده با این محتوا


Use efficient CSS selectors
has 15 very inefficient rules, 23 inefficient rules, and 13 potentially inefficient uses of :hover out of 164 total rules.
Very inefficient rules (good to fix on any page):

body#landing-page div#logo .logo img Tag key with 3 descendant selectors and ID overly qualified with tag and ID overly qualified with tag
body#landing-page div#wrap a Tag key with 2 descendant selectors and ID overly qualified with tag and ID overly qualified with tag
body#landing-page div#wrap a:hover Tag key with 2 descendant selectors and ID overly qualified with tag and ID overly qualified with tag
body#landing-page div#wrap a span Tag key with 3 descendant selectors and ID overly qualified with tag and ID overly qualified with tag
div.tooltip a.button span Tag key with 2 descendant selectors and Class overly qualified with tag and Class overly qualified with tag
* html #access ul li.current_page_item a Tag key with 5 descendant selectors and Class overly qualified with tag
* html #access ul li.current-menu-ancestor a Tag key with 5 descendant selectors and Class overly qualified with tag
* html #access ul li.current-menu-item a Tag key with 5 descendant selectors and Class overly qualified with tag
* html #access ul li.current-menu-parent a Tag key with 5 descendant selectors and Class overly qualified with tag
* html #access ul li a:hover Tag key with 5 descendant selectors
div#comments .reply a:hover Tag key with 2 descendant selectors and ID overly qualified with tag
div#wrap a span Tag key with 2 descendant selectors and ID overly qualified with tag
div#logo h1.logo img Tag key with 2 descendant selectors and ID overly qualified with tag and Class overly qualified with tag
table.ui-datepicker-calendar .ui-state-event:hover a Tag key with 2 descendant selectors and Class overly qualified with tag
div#saeed-newsletter-content fieldset.col2 label Tag key with 2 descendant selectors and ID overly qualified with tag and Class overly qualified with tag

Inefficient rules (good to fix on interactive pages):

body#landing-page div#wrap a.active span.left Class key with 3 descendant selectors and ID overly qualified with tag and ID overly qualified with tag and Class overly qualified with tag and Class overly qualified with tag
body#landing-page div#wrap a.active span.right Class key with 3 descendant selectors and ID overly qualified with tag and ID overly qualified with tag and Class overly qualified with tag and Class overly qualified with tag
body#landing-page div#wrap a.active span.center Class key with 3 descendant selectors and ID overly qualified with tag and ID overly qualified with tag and Class overly qualified with tag and Class overly qualified with tag
div#map-areas img Tag key with descendant selector and ID overly qualified with tag
div.tooltip h4 Tag key with descendant selector and Class overly qualified with tag
div.tooltip p Tag key with descendant selector and Class overly qualified with tag
body#landing-page div#saeed-menu div#social-side a.facebook:hover Class key with 3 descendant selectors and ID overly qualified with tag and ID overly qualified with tag and ID overly qualified with tag and Class overly qualified with tag
body#landing-page div#saeed-menu div#social-side a.twitter:hover Class key with 3 descendant selectors and ID overly qualified with tag and ID overly qualified with tag and ID overly qualified with tag and Class overly qualified with tag
#access ul ul :hover>a Tag key with 3 descendant selectors
#access ul li:hover>ul Tag key with 2 descendant selectors
#page .entry-title a:link Tag key with 2 descendant selectors
#page .entry-title a:visited Tag key with 2 descendant selectors
#respond .form-submit input:hover Tag key with 2 descendant selectors
#palette-2 #respond .form-submit input:hover Tag key with 3 descendant selectors
#palette-3 #respond .form-submit input:hover Tag key with 3 descendant selectors
div#wrap a Tag key with descendant selector and ID overly qualified with tag
div#wrap a:hover Tag key with descendant selector and ID overly qualified with tag
div#site-selector a:hover Tag key with descendant selector and ID overly qualified with tag
ul#saeed-network a:hover Tag key with descendant selector and ID overly qualified with tag
ul.events-list li Tag key with descendant selector and Class overly qualified with tag
div#saeed-newsletter-content form Tag key with descendant selector and ID overly qualified with tag
div#saeed-newsletter-content label Tag key with descendant selector and ID overly qualified with tag
ol.wp-paginate a:hover Tag key with descendant selector and Class overly qualified with tag

Rules that use the :hover pseudo-selector on non-anchor elements. This can cause performance problems in Internet Explorer versions 7 and 8 when a strict doctype is used.

#access li:hover>a
#access ul ul :hover>a
#access ul li:hover>ul
.entry-meta abbr:hover
.entry-utility abbr:hover
#respond .form-submit input:hover
#palette-2 #respond .form-submit input:hover
#palette-3 #respond .form-submit input:hover
form#searchform input#searchsubmit:hover
.ui-datepicker-prev:hover
.ui-datepicker-next:hover
table.ui-datepicker-calendar .ui-state-event:hover a
div#saeed-newsletter-content input.submit:hover

میخوام بدونم ینی چی اصن!!! هر کاری کردم نشد رفعش کنم!!!
پیشاپیش ممنون از کمک همه دوستان :)

mehbod.rayaneh
پنج شنبه 19 بهمن 1391, 17:15 عصر
کسی نبود با این کار کرده باشه!؟!؟!؟!
کلا خودم فهمیدم ک میگه اینا استفاده نشدن!!!
ولی همشون استفاده شدن!!!
چیکارش کنم؟!

tamafi6
جمعه 20 بهمن 1391, 00:22 صبح
سايت راباچندتامرورگرتست كنيداگرمشكلي درنمايش دادنش نداشتيدزيادبه اين خطاهااهميت نديد

mehbod.rayaneh
جمعه 20 بهمن 1391, 01:53 صبح
سلام
ممنون از کمکتون :)
با چندین تا مرورگر تست کردم!!! سالمه!
ولی میخوام سرعت لود بره بالا!!! با این خطا سرعت لود را میزنه 20!!! ولی اگه اینایی ک میگه را بردارم سرعت را میزنه 73!
ولی اگه اینا را بردارم کلا سایت ب هم میریزه!!! نمیدونم چیکارش کنم!!! :|

tamafi6
جمعه 20 بهمن 1391, 02:07 صبح
شماسلكتورهارابدمعرفي كرديداونجايي كه بايدازclass استفاده كنيدازidاستفاده كرديداين دوتامعرف راسعي كن باهم باشن يعني idهاباهم وclassهاباهم خيلي شلوغ كردي سعي كن خلاصه نويسي كني بهترين راهي كه من پيشنهادميكنم ازhtml5استفاده كن خطاهات كمترميشه اشتباه هم زيادنوشتي سعي كن قوانين كدنويسي رارعايت كني