如何确定页面加载时的瓶颈?(How can I determine the bottle neck on page load?)
我有一个使用jQuery UI的页面,并在2个不同的文本框上调用datepicker。 没有电话,即。 只需加载页面而不附加任何日期选择器,页面加载1.20秒。 附加了日期选择器后,页面加载3.92秒。 (这是在Firefox中)
我怎样才能加快速度? 基于Firebug中的网络图,它不是网络问题,但似乎在日期选择器附件中排成一行。 有没有办法加快速度?
此外,该行为仅在Firefox 3.0.11中可见。 Chrome非常快捷,IE7也是如此。
I have a page that uses jQuery UI, and calls the datepicker on 2 different text boxes. Without the calls, ie. just loading the page without attaching any datepickers, the page loads in 1.20 seconds. With the datepickers attached, the page loads in 3.92 seconds. (this is in firefox)
How can I get this speed up? Based on the network graph in Firebug, it isn't a network problem, but it seems to line in the datepicker attachments. Is there a way to speed this up?
Also, the behavior is only seen in Firefox 3.0.11. Chrome is quick and zippy, and so is IE7.
原文:https://stackoverflow.com/questions/1014884
最满意答案
search
方法为您提供搜索结果,您需要多做一些才能获得图像。require_once 'lib/AmazonECS.class.php'; $client = new AmazonECS('AWSApi','AWSSected','DE','Assoicate'); $search = $client->category('Photo')->search('Nikon'); if ($search) { $lookup = $client->responseGroup('Images')->lookup($search->ASIN); echo '<pre>'; var_dump($lookup); // will give you the item's object and the image's url }
The
search
method gives you search results, you need to do a bit more to get an image.require_once 'lib/AmazonECS.class.php'; $client = new AmazonECS('AWSApi','AWSSected','DE','Assoicate'); $search = $client->category('Photo')->search('Nikon'); if ($search) { $lookup = $client->responseGroup('Images')->lookup($search->ASIN); echo '<pre>'; var_dump($lookup); // will give you the item's object and the image's url }
相关问答
更多-
亚马逊产品API与R(Amazon Product API with R)[2023-08-20]
尝试这个 这应该使用产品广告API执行搜索,我认为您的意思是。 您需要提供AWSAccessKeyId和AWSsecretkey, 可以通过以下网址获取: http : //docs.amazonwebservices.com/AWSECommerceService/2011-08-01/GSG/ search.amazon <- function(Keywords, SearchIndex = 'All', AWSAccessKeyId, AWSsecretkey, AssociateTag, Respo ... -
我可以通过亚马逊的API获得打折的产品吗?(Is it possible for me to get products that are discounted via Amazon's API?)[2023-11-03]
对于某些搜索索引,您可以要求最低百分比: http://docs.amazonwebservices.com/AWSECommerceService/2011-08-01/DG/USSearchIndexParamForItemsearch.html 例如,如果我正在搜索Toys,我可以使用以下参数获得最低百分比: {“SearchIndex”:“Toys”,“Service”:“AWSECommerceService”,“AWSAccessKeyId”:“xxx”,“Timestamp”:“2011-12 ... -
看起来您在英国,因此您需要使用
标签对产品进行分类。 您可以在“亚马逊销售指南”的第40-41页上找到更多信息和示例: https : //images-na.ssl-images-amazon.com/images/G/01/rainier/help/XML_Documentation_Intl。 _V351673846_.pdf It looks like you're in the UK, so you wil ... -
亚马逊产品广告API PHP仅显示产品图像(Amazon Product Advertising API PHP Display only Image of a Product)[2023-02-02]
我认为他们有很多选择(语言)。 以下是使用PHP执行此操作的链接: http://aws.amazon.com/code/Product-Advertising-API/4373 I think they have a number of options(languages). Here is the link to do it using PHP : http://aws.amazon.com/code/Product-Advertising-API/4373 -
它发生了,因为我在示例中提到的产品不再可用,因此它显示价格为None >>> from amazon.api import AmazonAPI >>> amazon = AmazonAPI(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG) >>> product = amazon.lookup(ItemId='B00EOE0WKQ') >>> product.title 'Amazon Fire Phone, 32GB (AT&T)' ...
-
亚马逊产品api调用响应:PHP中的SignatureDoesNotMatch(Amazon product api call Response: SignatureDoesNotMatch in PHP)[2023-10-06]
试试看你是否得到相同的签名: http : //associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html 如果您计算它的方式是正确的,那么您的机器和亚马逊服务器之间可能存在时钟差异。 在这种情况下,您需要同步计算机上的时间。 Try and see if you get the same signature: http://associates-amazon.s3.amazonaws.com/signed-requests/he ... -
亚马逊产品广告API:从ASIN获取产品详细信息URL(Amazon Product Advertising API: Get Product Detail URL from ASIN)[2023-01-18]
弄清楚了。 这是我最终使用的代码: $name; } function __construct() { $this->ecs = ne ... -
search方法为您提供搜索结果,您需要多做一些才能获得图像。 require_once 'lib/AmazonECS.class.php'; $client = new AmazonECS('AWSApi','AWSSected','DE','Assoicate'); $search = $client->category('Photo')->search('Nikon'); if ($search) { $lookup = $client->responseGroup('Ima ...
-
显示Api图像(Display Api Image)[2021-12-23]
我将假设你是PHP新手,因为你违反了一条基本规则。 您正在将PHP逻辑代码与HTML代码混合在一起。 如果您是初学者并且无法避免在与HTML代码相同的文件中编写PHP逻辑,请至少执行以下操作:首先编写PHP代码,然后在任何HTML之前编写PHP代码并保留文件结束的HTML 。 所以,自然这个$data['response']['avatar']在上面是空的,因为$ data数组是从json_decode中检索的,但是在“下面”。 因此,首先将PHP代码添加到上面,然后将HTML放在下面。 请记住,你这样做只 ... -
所有图像都在响应的
部分中。 我认为你可以使用get_array方法来做到这get_array : resp = Amazon::Ecs.item_lookup(asin, { response_group: 'Offers,Images', country: 'de' }) item = resp.get_element('Item') images = item.get_array('ImageSets/ImageSet/LargeImage') All images are ...