Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    General discussion    Topic: Post command during page load
Pages: [1]   Go Down
  Print  
Author Topic: Post command during page load  (Read 1320 times)
0 Members and 2 Guests are viewing this topic.
capella
Newbie
*

Karma: 0
Offline Offline

Posts: 46


Email
« on: October 15, 2010, 07:06:25 »

I am seeing a post command during page load and i am not sure why it is there. If i remember correctly it wasn't there before so i am not sure what changed now.

http://mydomain.com/index.php?option=com_jcomments&tmpl=component&jtxa%5B%5D=99991304&jtxa%5B%5D=com_directory&jtxa%5B%5D=0&jtxf=JCommentsShowPage


load this page to see issue - http://www.way2college.com/BEdPunjab.htm

If you are using firebug or httpwatch you will see there is a post request made to site and i am not sure why. can you please look into this.

thsi post request is making my site slow.

thanks
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #1 on: October 15, 2010, 13:43:34 »

When page loads JComments calls showPage method through AJAX to load the comment's list. This post could slow down your site because it asynchronous and doesn't stops page loading.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
capella
Newbie
*

Karma: 0
Offline Offline

Posts: 46


Email
« Reply #2 on: October 16, 2010, 00:40:54 »

1. Now when i do page source of my pages i am not able to see any of the comments. But i was able to see them earlier.
2. Also earlier i don't remember i saw any post (ajax) call while page loading, so i am not sure what changed.
3. I am using jre cache and that caches complete html out put of a given page and only refreshes cache for any page when a new jcomment has been posted. But i guess in this method of post, that caching doesn't make sense.
4. and it seems that is the reason my google traffic is going down drastically, because google is not able to see any content on the pages.

So my top question is that what changed, which is causing this to be a post call instead of a normal function call?
Logged
capella
Newbie
*

Karma: 0
Offline Offline

Posts: 46


Email
« Reply #3 on: October 16, 2010, 00:54:34 »

I guess i got the answer - http://www.joomlatune.com/forum/index.php/topic,722.0.html

I am on jcomments 2.1 and i am not finding the setting file you discussed. what is my option?
Logged
smart
Administrator
Hero Member
*****

Karma: 160
Offline Offline

Gender: Male
Posts: 2559



WWW
« Reply #4 on: October 16, 2010, 01:20:57 »

1. By default JComments doesn't embed comments into page source because I want to show actual comments, not cached
2. If you'll disable cache the comments would be present in page source but during page load they would be updated via AJAX. This behavior was since first version of JComments was released
3. There is no way to clear cache for certain page so we couldn't clear the article's cache when comment has been added. So we need reload comments list every page load or disable cache. Otherwise we will see cached comments, not actual.
4. I haven't any issues with Google on any of my sites. They are prefectly indexed (except comments because they're doesn't present in page souce).

Regarding link you've found - you needn't to change any file - just add one value to the settings table.
Logged

If you use JComments, please post a rating and a review at the Joomla! Extensions Directory
capella
Newbie
*

Karma: 0
Offline Offline

Posts: 46


Email
« Reply #5 on: October 16, 2010, 03:52:22 »

This wasn't working evern after adding settings to the table so for now i have disabled joomla cache. will look into this issue later.
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    General discussion    Topic: Post command during page load
 
Jump to: