To measure the impact of a slower webpage on the CTR of a button I'm trying to slow down the page in an optimizely test.
I can't find a proper way to do that with JavaScript, which would be needed for optimizely. To simulate a slower page (perceived performance) my first shot was hiding the page body { visibility: hidden }
for 1 second.
But, it resulted in a better CTR, since the browser kept loading the rest of the page and displayed the page with less flickering (all content was ready).
Then I tried the solution suggested here: How do I write a blocking synchronous method in Javascript? with no satisfying result.
Any other ideas how I could set up the test (without using php sleep()
)?