Category: Twitter Comments

Google wants Pagespeed, but is not using browser caching for its fonts?

Since quite a while I am wondering:

Since the first time I was using the Google Pagespeed tools to increase pagespeed, I didn’t get it. You do everything you can to get the 100, but if you are using Google products like the Google Font API or Analytics, Google remains complaining:

Google suggests to optimize Google
Google suggests to optimize Google

Who gets it? Isn’t this at least awkward? Why is Google preaching pagespeed and not caching resources like the fonts, which are used widely over the Internet? Since Google fonts and scripts are used so widely over the Internet:

Wouldn’t caching the Google fonts, the Google scripts and so on not increase the Internets pagespeed all together?

So Envato was down

I’ve just released my first CodeCanyon Plugin and so I am almost constantly checking on sales and new comments and what so ever. Mostly wasting time. Now on CodeCanyon. So, suddenly, I got an error page, saying, that something went wrong and the developers are informed, but I could also call the support, if its urgent. Well it wasn’t so much. The next thing that popped up was Envatos Twitter message:

And the Twitter wave started. They soon went online again, which might have been a mistake, because the database was reset to an older backup (probably) (see here) and so I’ve lost a sale. I went to the Twitter “enevato”-timeline, where @AvaThemes reported

I replied, reporting the same and instantly realizing, the comments are reset as well – and reporting.

Again, I went back on the timeline just to see how a torrent of tweets bursted. My money, my money, my money! And I started to realize how familiar I am with such an situation, just with the difference, I have just one client and not thousands. Poor guys.

@envato tried to stop that wave by posting:

But it didn’t help.

Anyway, second after second a new complain, some poor fellow had to reply constantly while more important stuff was to do probably and then Envato decided to make a clever move. Take down the site and call it “Big backend changes”, the torrent broke.

Just a Sec
Envato Downtime @ 06.03.2014

And, then, after a while: Everything set to normal. The first tweet reporting this came by Astoundify


Tea for everybody and stay tuned, the reasons for this downtime will be evaluated soon. For sure, it was not a regular downtime as you can see here:

Well, anyway: Probably by tomorrow, there will be a huge “We are sorry, guys, but”-Mail to every member of Envato. So for now:

Update 07.03.2014
There is a new forum thread, where envato explains a bit, what happend. John Viner one of the developer teams said:

John Viner
John Viner, developer at Envato

Our initial investigation has indicated that between 6:30AM and 7:00AM AEST, after the site came up from the initial downtime, some data was written to one of our non-primary databases instead of the primary database. This explains why some information such as a small number of sales, appear to be missing. Nothing is actually missing however, we have all the data. But we are now working on merging this data back into our primary database so everything aligns correctly.

So, it was not an old backup, which was enrolled, but that “some data was written to one of our non-primary databases”. As far as I understand this, the sales and comments and items during the day haven’t been stored in the correct database.

Tweet Comment: Did you know, jQuery is able to…?

@prantor19 just twittered a list of useful jQuery Snippets for 2014:

Well, I’m not to sure about some of these snippets. Sometimes, I think, you should CSS like for example:
$('li:odd').css('background-color: #000');

I just don’t get it, why you cant just use CSS

Well, there might be some reasons, why you have to use Javascript instead, but a Rocking Script as it says in the Title “Rocking and Useful jQuery Code Snippets For 2014”?

There are some others too, which would fit more into a title “Did you know, jQuery is able to…?“.

$('input [type="submit"]').attr('disabled', true);
Yes! With jQuery you can alter attributes!

Well really, what is so rocking about
var anchor = $('#anchor');
setTimeout(function() {
}, 3000);


So, despite the strange title, which really hasn’t proven for me, I do like this one:

$('img').error(function() {
$(this).attr('src', 'img/not_found.png');

$('img').load(function() {
console.log('images successfully loaded');

Its quite obvious, when you see it, but I haven’t thought about this possibility yet. Why should the load-function just work with window?? I will try this one for sure!

And this one here

is quite nice to investigate further. As the jQuery Docs explain “Insert content, specified by the parameter, after each element in the set of matched elements”. So this piece of code puts a break between all &lt,p>-Tags, but not behing the last one, because :not(:last-of-type) I like this usage of the selectors and once again it shows the power of them.

Thanks for the Tweet!