首页 \ 问答 \ Ember-skeleton刷新时间[关闭](Ember-skeleton refresh time [closed])

Ember-skeleton刷新时间[关闭](Ember-skeleton refresh time [closed])

将js和css文件串联到单个文件(app.js或app.css)中,Ember-skeleton对于开发来说太慢了。 每次刷新浏览器时是否重新处理Assetfile? 有没有人经历过同样的事情?


With all the concatenation of js and css files into a single file, either app.js or app.css, Ember-skeleton is way too slow to use for development. Is the Assetfile reprocessed each time we refresh the browser? Does anyone experience the same thing ?


原文:https://stackoverflow.com/questions/14064902
更新时间:2023-11-12 20:11

最满意答案

而不是<div role="navigation">只需使用<nav> 。 即使在<header> ,页面上也可以有多个<nav>元素。 虽然<nav>通常是为主要的导航块保留的(实际上你会在页面上最多只有两三个),但我认为这些都符合你的例子。

考虑将链接放在列表中,因为它会向屏幕阅读器用户宣布项目数。

此外,我怀疑你的visuallyhidden隐藏课程是否隐藏除了屏幕阅读器以外的所有用户的<h2> 。 与aria-labelledby配对导致它被宣布两次。 拥有<h2>还可以在屏幕阅读器中的标题导航中创建不必要的停止。 考虑完全转储<h2>并使用aria-label代替。 这样您就不需要在视觉上隐藏它,您仍然可以为屏幕阅读器用户提供上下文。

此时,您可能还希望对主导航执行此操作(或不执行此操作,具体取决于用户测试及其创建页面的详细程度)。

所以,稍微调整你的例子:

<header>
 <nav aria-label="Account and store pages" class="utility-nav">
   <ul class="align-right">
    <li><a href="#">my account</a></li>
    <li><a href="#">find a store</a></li>
    <li><a href="#">credit center</a></li>
    <li><a href="#">track order</a></li>
    <li><a href="#">wishlist</a></li>
   </ul>
 </nav>  <!-- utility bar -->

 […]

 <nav aria-label="Primary navigation" id="top-nav">
  <ul>
   <li><a href="#">Women</a></li>
   <li><a href="#">Men</a></li>
   <li><a href="#">Juniors</a></li>
   <li><a href="#">Baby</a></li>
 <!-- etc -->
  </ul>        
 </nav>
</header>

如果可以,请考虑下载免费的屏幕阅读器NVDA (如果您的雇主有现金,则捐赠)并通过您构建的页面运行它。


Instead of <div role="navigation"> just use <nav>. It is ok to have more than one <nav> element on the page, even in a <header>. While <nav> is generally reserved for major blocks of navigation (meaning realistically you would max out at two or three on a page), I think both of these qualify in your example.

Consider putting your links within a list as that announces the number of items to a screen reader user.

Also, I suspect your visuallyhidden class is there to hide the <h2> from all users except screen readers. Pairing that with aria-labelledby results in it being announced twice. Having the <h2>can also create unnecessary stops in heading navigation within a screen reader. Consider dumping the <h2> altogether and using aria-label instead. This way you don't need to visually hide it and you can still provide context to your screen reader users.

At that point, you might want to also do that to the primary navigation (or not, depending on user testing and how verbose it makes the page).

So, to tweak your example a bit:

<header>
 <nav aria-label="Account and store pages" class="utility-nav">
   <ul class="align-right">
    <li><a href="#">my account</a></li>
    <li><a href="#">find a store</a></li>
    <li><a href="#">credit center</a></li>
    <li><a href="#">track order</a></li>
    <li><a href="#">wishlist</a></li>
   </ul>
 </nav>  <!-- utility bar -->

 […]

 <nav aria-label="Primary navigation" id="top-nav">
  <ul>
   <li><a href="#">Women</a></li>
   <li><a href="#">Men</a></li>
   <li><a href="#">Juniors</a></li>
   <li><a href="#">Baby</a></li>
 <!-- etc -->
  </ul>        
 </nav>
</header>

If you can, consider downloading the free screen reader NVDA (and donating if your employer has the cash) and running it through the page you build.

相关问答

更多
  • 那么,如果它是一个企业名单和他们的地址,也许你应该使用一个列表。 对于HTML中可能做的每件事都没有语义元素,只需使用最相关的元素即可。 根据你将如何格式化这些信息,如果数据是表格格式的,你应该使用一个表格,或者使用几乎任何其他格式的列表。 您可以在列表中设置样式来删除子弹,但底线是您仍然提供数据列表 ,这是您可以使用的最具语义的东西。 Well, if it's a list of businesses and their addresses, perhaps you should use a list. ...
  • 我最近为我的客户项目创建了一个爬虫系统。 基本上这些是我遵循的步骤: Project基于PHP,它支持多种类型的文档,如xml,json和html。 我已经创建了一个基础产品对象,其中包含我需要的属性(标题,图像,价格,链接,类别,源站点) 对于每个网站,我使用的解析器通常使用带有DomXpath的PhpDom库。 基本上,我找到产品列表标签,并循环记录并创建一个新产品列表对象,其中包含产品对象(步骤2)。 当解析网站完成时,我将整个列表发送到我的基本操作,它检查具有该URL的产品是否已经存在,如果它没有添 ...
  • 是否有可能使用MWS将产品从亚马逊卖家帐户提取到非亚马逊卖家网站上? 是。 您可以使用MWS从亚马逊“下载”数据。 我自己并没有这样做(我所做的所有整合都是相反的),但看起来,如果您通过报告API来完成此工作,可能会有相当大的滞后 。 是否有可能在非亚马逊卖家网站上提交这些产品的订单,并让亚马逊做所有的付款处理和运输? 是。 对于付款处理,请查看不属于MWS的亚马逊付款解决方案 。 运输可以通过MWS使用FBA(亚马逊实现)调用完成,例如CreateFulfillmentOrder 。 继上一个问题之后,是 ...
  • 而不是
    只需使用
  • 这个问题已经解决。 我将此代码放入我的style.css文件中。 wpsc_default_product_list { float: left; width: 600px; } .wpsc_category_grid { float: right; width: 650px; } This problem has been resolved. I put this code into my style.css file. wpsc_default_product_list { float: left; ...
  • 正如你所说paytm是一个dyncamic网站。 它们为每个事务块发送JSON请求。 默认情况下,每个请求的事务数为10。 对于抓取,您需要为大量事务发出JSON post请求。 作为响应,您将获得易于解析的JSON数据。 我刚检查过,在写答案时逻辑成立。 用于使用python scrappy发送JSON请求 from scrapy.http import FormRequest my_data = {'field1': 'value1', 'field2': 'value2'} request = scr ...
  • 忽略排序问题,只关注规范化价格元数据问题。 您需要一种方法从其所在的任何元数据字段中读取价格,并创建具有通用名称和相同值的新元数据字段。 有几种方法可以做到这一点,但最简单的方法可能是: 为每个文档生成元网址和网址,并添加规范化的元数据 通过代理进行爬网,该代理可以在包含规范化元数据时添加X-GSA-External-Metadata标头 Ignoring the sorting issue and just concentrating on normalising the price metadata p ...
  • 确实,您可以在Sandbox环境中测试PayPal支付网关,而不是Live帐户。 以下链接有关创建PayPal沙盒帐户供您参考。 https://developer.paypal.com/docs/classic/lifecycle/sb_create-accounts/ It is true that you are able to test PayPal payment gateway in Sandbox environment instead of Live account. Below link ...
  • 电子商务比你想象的要复杂得多。 即使像持久性购物车这样简单的东西,允许您的用户添加一堆项目也需要相当多的代码。 然后是整个结账流程和订单跟踪/履行事情。 任何真正的购物车将包括运输选项,付款选项,某种购物车,结账流程,订单生成等。如果您只想销售一些产品,那么只需使用Paypal或Google Checkout。 E-commerce is a lot more complicated than you think. Even something as simple as a persistent shopp ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)