webpagetest | Salt States to deploy a private Web Page Test instance | Frontend Framework library
kandi X-RAY | webpagetest Summary
kandi X-RAY | webpagetest Summary
Salt States to deploy a private Web Page Test instance.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of webpagetest
webpagetest Key Features
webpagetest Examples and Code Snippets
Community Discussions
Trending Discussions on webpagetest
QUESTION
I am trying to automate few test cases from different test cases in sequential manner. i.e. one after another test class execution.
In some of cases, web application is not getting closed/quit. i.e. driver instance not closing/quitting. I am trying to quit/close driver in @AfterClass method as well as test class level as well but its not working in both cases.
In TestNG Suite results, its showing as its tried to executed but webdriver instances are NOT closed and new webpage instance is open.
For reference I have shared code for 1st two test classes.
Please check below snippet for code:
...ANSWER
Answered 2021-Jun-09 at 09:55You can add alwaysRun = true in @AfterClass annotation. like @AfterClass(alwaysRun=true).
If your test classes are independent of each other then it is good to use separate session for each test class. In this case you have to write @AfterClass method in each of test class to close individual session.
QUESTION
I am testing my webpage with webpagetest.org
On my page, there are a bunch of images. I can see them well cached in the repeated run: (304 response is marked as yellow in WebPageTest waterfall result)
However, in cache static content, there's no check on those resources
I found the difference is that those scripts and styles have cache-control: max-age=2592000
, while those media resources have cache-control: max-age=0
in the server response. Does it mean that WebPageTest will neglect these responses with max-age=0
in static cache checking?
ANSWER
Answered 2021-Jun-07 at 10:07Does it mean that WebPageTest will neglect these responses with max-age=0 in static cache checking?
The documentation states that resources which include a specific indication of non-cacheability will not be subject to the 'Cache Static' check:
Applicable Objects
Any non-html object with a mime type of
"text/*"
,"*javascript*"
or"image/*"
that does not explicitly have anExpires
header of0
or-1
, acache-control
header of"private"
,"no-store"
or"no-cache"
or a pragma header of"no-cache"
While max-age=0
isn't included in that list, it should be treated the same as no-cache
, and is likely being treated the same here and excluding those objects from this check.
QUESTION
I try to optimize the whole Pagespeed of this page but I can't get the CLS under 0.1 on mobile. I really don't know why as I use critical css, page-caching and font-preloading and I cant reproduce the behaviour in tests.
Tested with an simulated Galaxy S5 on 3G Fast. https://www.webpagetest.org/result/210112_DiK9_256ca61d8f9383a5b927ef5f55644338/
In no Scenario I get somewhere near the 0.1 in CLS.
...ANSWER
Answered 2021-Jan-12 at 18:00Field data and Origin Summary are real world data.
There is the key difference between these metrics and the synthetic test that Page Speed Insights runs.
For example: CLS is measured until page unload in the real world, as mentioned in this explanation on CLS from Addy Osmani who works on Google Chrome.
For this reason your CLS can be high for pages if they perform poorly at certain screen sizes (as Lighthouse / PSI only tests one mobile screen size by default) or if there are things like lazy loading not performing well in the real world and causing layout shifts when things load too slowly.
It could also be certain browsers, connection speeds etc. etc.
How can you find the page / root cause that is ruining your Web Vitals?Let's assume you have a page that does well in the Lighthouse synthetic test but it performs poorly in the real world at certain screen sizes. How can you identify it?
For that you need to gather Real User Metrics (RUM) data.
RUM data is data gathered in the real world as real users use your site and stored on your server for later analysis / problem identification.
There is an easy way to do this yourself, using the Web Vitals Library.
This allows you to gather CLS, FID, LCP, FCP and TTFB data, which is more than enough to identify pages that perform poorly.
You can pipe the data gathered to your own API, or to Google Analytics for analysis.
If you gather and then combine the web vitals information with User Agent strings (to get the browser and OS) and the browser size information (to get the effective screen size) you can narrow down if the issue is down to a certain browser, a certain screen size, a certain connection speed (as you can see slower connections from high FCP / LCP figures) etc. etc.
QUESTION
When using WebPageTest it is possible to use custom scripts to set cookies. Is it possible to do the same on PageSpeed Insights or lighthouse?
For example in the European Union you may want to set cookies to disable the cookie consent popup which will not appear for repeat users who have already consented to the website's cookie policy.
...ANSWER
Answered 2020-Oct-06 at 14:49Page Speed Insights (PSI) is designed for simulating a first time user to the site, so your cookies popup would always show.
It does not cache cookies or anything else. There is no way to send cookies to PSI.
Lighthouse in the browserIf you are using Lighthouse in the browser simply untick the "Clear Storage" option in the top bar (you may have to click the gear icon top right to reveal this) and at that point run the page twice (once to set the cache), cookies will be stored and you will record a run with cached images, files etc.
If you wanted to create a run where cookies are stored but nothing else is cached you could go to the application tab in developer tools and remove everything other than the cookies.
However as this is not indicative of a real world scenario I do not see the benefit and is only included as it answers the original question.
Lighthouse CLI + PuppeteerYour final option for complete control would be to run Lighthouse CLI on your own machine.
The source code for Lighthouse is available on GitHub, takes a short while to set up, installing chromium etc. but it is worth it.
At that point you have more control, if you partner it with Puppeteer then you have all the control to set individual cookies etc.
However it does appear that you should be able to pass cookies directly to Lighthouse via config according to this thread, but it might not work and ultimately ends up recommending puppeteer. Perhaps that is a feature that will get improved upon soon.
QUESTION
I trying to get data from another site and add it to array and after that I want to use data in a select, but I get error:
...TypeError: Cannot read property 'locationList' of undefined
ANSWER
Answered 2020-Jun-09 at 20:04It seems to be the context of this
issue.
In your getLocations()
try adding this line before the fetch
:
let vm = this
then inside your fetch
function use:
vm.locationList.push(list);
instead of this.locationList.push(list);
Hope it helps. Good luck.
QUESTION
I have built my application with webpack merging all css into one file, all js into one file and having one html for my SPA app.
When I do my testing with webpagetest most of my issues is not with loading the files but loading them as individual files.
html+css+js=index.html
How do I pack my html, css and js into a single index.html, so I can avoid http overhead?
Webpack or any webpack plugin is better, since we are already using it.
Thanks for any direction on this.
...ANSWER
Answered 2017-Oct-22 at 14:43I use html-webpack-plugin
inject the output from Webpack into a index.html file.
Assuming you mean you want to inline all those files into one http request of index.html
you can use html-webpack-inline-source-plugin
to achieve this.
QUESTION
When testing my website performance with webpagetest I get excellent results, with my pages being fully loaded under 1s, taking aound 0.6s.
Those tests are being made using my user base location (Brazil - São Paulo), so it may be similar to their result.
But when I do check Google Search Console for the speed result it shows around 1.4s, which is too far away from the results I do have in here.
What I am in doubt is: Is it because the speed result in Goolge Search Console is still experimental? Or is there something wrong that I am doing on those tests?
The webpage I am testing is:
https://www.99contratos.com.br/contrato-locacao-residencial.php
And a result I get from webpagetest can be seen clicking the link bellow:
I do appreciate all the help / tips / explanations.
Kind Regards
...ANSWER
Answered 2020-May-15 at 02:58The speed (in seconds, not scores) displayed on the speed test results is very influential on the test server region. The closer the test server region is, the faster the loading time will be.
Example of speed test results for your page, using servers from Australia - Sydney, Canada - Vancouver, and your base location: Brazil - São Paulo, using GTmetrix.
- Australia - Sydney (3,2s)
- Canada - Vancouver (1,9s)
- Brazil - São Paulo (0,8s)
So, it can be concluded LARGE POSSIBLE test server region used by Google Search Console is far from your base location.
By the way, when I open your page from Indonesia, it only takes about 0.9-1.2 seconds. So, congratulations, your page is fast!
QUESTION
I noticed that a Flutter Web project that I am making with the font_awesome_flutter plugin is being slowed down by the font_size download. I'm only using one icon from the font. Is there any way I can get this smaller?
Here is the data from webpagetest.org:
...ANSWER
Answered 2020-Apr-11 at 11:28Remove the font_awesome_flutter plugin from pubspec.yaml and wherever you are using it in your project.
Generate a font with only the icons that you needYou can just extract the icons you need from the font and discard the rest. An east way to do this is to use the IcoMoon site. For example I used the site to generate a font with only the Apple logo icon.
Note the code (eabe
). You'll use it later.
You get get instructions for doing that here. I called my font family Apple
.
To use your icon just use a Text widget with the code as the text and specify the font family that you registered in step 2.
QUESTION
I just used www.webpagetest.org to test our homepage which has an autoplay HTML5 9MB fullpage background video:
...ANSWER
Answered 2019-Dec-21 at 00:50If your video has sound, this will cause a delay in loading. As per the apple developer release notes for Safari 10, ".. videos without audio tracks or with disabled audio tracks can play automatically when the webpage loads". A note is also added on caniuse.com that the autoplay feature is only available to non-audible videos.
You could try putting the muted
attribute before the autoplay
in your video code, or muting the audio track of your video [in a vid editor] and then re-export/upload a silent version to see if that makes a difference.
Good luck!
QUESTION
I'm using WebPageTest and am struggling to understand the meaning of the different colors and why it takes so long for my images to be shown (almost 2s). Using the WebPageTest waterfall view I can see a lot of "wait". I just dunno how to read the waterfall correctly and understand what all of my content is waiting on to be downloaded.
You can see my test results on WebPageTest: http://webpagetest.org/video/compare.php?tests=190928_QX_41979a80ef721f72c65dba5363475192-r%3A1-c%3A0-l%3Awww.kaybojesen.dk%2F,
I did some research and found I have to fix the issue using preload attribute:
...ANSWER
Answered 2019-Sep-28 at 21:49The color key is at the top. It just tells you what type of asset is being loaded except for the DNS + connect + ssl which combined together make up the process of establishing the initial connection to a domain.
The Atelier theme doesn't seem to have been centered around performance, but you should still be able to get things loading faster. One thing that you could fix is you can make sure you're only loading the necessary scripts/css for each page. https://www.kaybojesen.dk/wp-content/plugins/instagram-feed/css/sb-instagram.min.css doesn't need to be loaded on the homepage. Some items such as the cookie notice, could be loaded after everything else. Fixing that should give you a big improvement. You can also load the CSS/JS from a CDN. Make sure you're using a good caching plugin if you're not already doing so.
It's easy to spot some of these problems such as the cookie notice loading too early. The tricky part is finding plugins or code snippets that you can use to fix these performance issues.
If you look at the "browser main thread" at the bottom it will tell you what is happening during the "wait" time. According to this, There is a bunch of layout happening. Chrome just needs some time after receiving all of the CSS to process it before it continues loading the page. I think webpagetest's server's are slower than your typical computer, so they spend more time in the wait stage, but it's probably a good idea to optimize for the worst case scenario. Anyhow, that's what the wait is all about.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install webpagetest
Dismiss the Network Discovery panel.
Launch IE on each server, and click through to enable the Browser Helper Object. Otherwise, your IE tests will fail.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page