JoshyPHP I have installed Summaries extension but was disabled, now i removed it and i think its still loading all post content, huh maybe not now probably is fine ? im not sure...
After i remove Summaries extension i have improvements!
There is some bad things from emojis cdn:
https://cdn.jsdelivr.net/emojione/assets/png/26A1.png - expiration not specified, all emoji images dont have expiration time set hmm. They probably need to fix this?
Looks good -
http://www.webpagetest.org/result/160606_KQ_YVY/
https://gtmetrix.com/reports/silencebgsoftware.com/rnRxCXhu
There is still some post loading images post content but is from sticky topics. Because sticky topics displaying some of the content in list. Is possible to remove this displaying?
System.register('flarum/sticky/addStickyExcerpt', ['flarum/extend', 'flarum/components/DiscussionList', 'flarum/components/DiscussionListItem', 'flarum/utils/string'], function (_export, _context) {
var extend, DiscussionList, DiscussionListItem, truncate;
function addStickyControl() {
extend(DiscussionList.prototype, 'requestParams', function (params) {
params.include.push('startPost');
});
extend(DiscussionListItem.prototype, 'infoItems', function (items) {
var discussion = this.props.discussion;
if (discussion.isSticky()) {
var startPost = discussion.startPost();
if (startPost) {
var excerpt = m(
'span',
null,
truncate(startPost.contentPlain(), 200)
);
items.add('excerpt', excerpt, -100);
}
}
});
}
import { extend } from 'flarum/extend';
import DiscussionList from 'flarum/components/DiscussionList';
import DiscussionListItem from 'flarum/components/DiscussionListItem';
import { truncate } from 'flarum/utils/string';
export default function addStickyControl() {
extend(DiscussionList.prototype, 'requestParams', function(params) {
params.include.push('startPost');
});
extend(DiscussionListItem.prototype, 'infoItems', function(items) {
const discussion = this.props.discussion;
if (discussion.isSticky()) {
const startPost = discussion.startPost();
if (startPost) {
const excerpt = <span>{truncate(startPost.contentPlain(), 200)}</span>;
items.add('excerpt', excerpt, -100);
}
}
});
}
I think this is for sticky displaying in home page? Any suggestions how to modify it?