This attribute provides a way to pass HTML that will override the response from the src attribute.Continue reading “TIL: Iframe tag has srcdoc attribute”
A few months ago I wrote an article in Web Performance Calendar, one of the most famous performance websites in the past 10+ years.
It is created and maintained by Stoyan Stefanov and his idea for the calendar is simple: from December 1st till December 31st, publish 1 new article every day. It is an archive of high-quality, long and containing tips, ideas and insights articles.
And my article was Case Study: React partial SSR with SFCC
I was curious what is the speed performance of Vbox7.com website, a vastly visited website in Bulgaria. Vbox7.com is video platform just like Youtube.com but only with Bulgarian content. In December 2019 the total (desktop, mobile & APPs) visits are 3 200 000, quite a lot, more info you can find on their page here.
Based on that I decided to not spend too much time and do quick performance analysis on the website.
The project that caused this article is React and headless architecture, a lot of API calls are returning JSONs.
We had a problem, sometimes we had white page because of a lot of JS errors.
Do you know how browsers are parsing the HTML and especially the script tags?
It is sequentially, line by line, character by character.
Look at the below HTML, what do you think will happen if you run this code?
The other day in the team we were playing with one simple bug. The bug was why the Intersection Observer is loading almost all images on the page which are not in the viewport?Continue reading “The dimensions of an img tag”
Push notifications are a really nice feature, you can trigger a notification to the user device with any text that you want with title, image, body and it even can make the mobile device to vibrate (depends on the browser) when receiving it.
This is a really cool way to get the user attention when you have promotions, forgotten baskets full of products or you have published something new.
What I observe on vast of the majority of the news websites and not only them, is that they are sending all kind of notifications (Apps, Twitter, Emails etc.) when possible, 10 AM, 2 PM, 11 PM, 1 AM.
Recently I helped one company to prevent common emails for registrations and etc. to be marked as SPAM automatically from users mailboxes.
When you are using third-party service like MailChimp and with your own domain to send your emails you have to do several steps to prove all mailboxes that you are you and that you are not some spammer.
This week I had to help a friend with his new small ReacJS website running on Apache.
His problem was that URIs which does not exist the Apache was returning as 404 pages, he needed a common rule used by a lot of PHP frameworks, Rewrite all URIs which are not Files or Directories to /index.html
www.example.com/myprofile to actually load
www.example.com/index.html and let the ReactJS route do his work and show what it needs.
Recently I had to deploy one newly build Magento 2 site to its server for which there was no info what has been installed or what is the infrastructure (the normal case where they don’t follow your requirements and are not giving much info).