...the foot during maintenance: If all your routes send a "200 OK" with a HTML body "We're back soon", Google will index "We're back soon" as the text...
...above the browser would now load your frontend bundle in multiple steps: Load initial HTML
...popup layer and copy the inputs between the layers. We will use the following HTML: %form{ action: my_filter_path, class: 'filter-form', 'up-history': true, 'up-target': '.filter-form...
Mise is a tool that can manage your Ruby and Node.js versions. It replaces rbenv and nvm in that regard...
end end # app/controllers/jasmine_controller.rb class JasmineController < ApplicationController layout false def index end end -# app/views/jasmine/index.html.haml !!! %html %head = stylesheet_pack_tag 'jasmine', :media => 'all' %link{href: image_pack_tag('jasmine_favicon.png'), rel: 'icon...
...a class WebsiteSizer that measures the number of characters in the given URL's HTML body: website_sizer = WebsiteSizer.new website_sizer.size_of('https://makandra.com') # => 27448 website_sizer.size_of('https://railslts.com') # => 2145364
...class should cache its results so subsequent calls for the same URLs return the HTML size instantly, without making an additional HTTP request. Write three versions of WebsiteSizer:
...some handy stuff in here. Analysing Frontend Performance Issues Rendering Performace Breakpoints Breakpoints on HTML Elements Event Listener Breakpoints Debugging Browser debugging tricks Remote Debugging on Android Access DevTools via...
...Coverage. This gives a benefit because changes in JavaScript often correlate with changes in HTML. This may partly also be influenced by the fact that features are harder to prioritize...
...performance, looking at efforts Google Chrome takes to increase it. Preconnect With in an HTML head, you give the browser an early hint that it will need to access the...
...level, such that a component is using this class to render and modify some html, it may fastly become boilerplate to define every call of the method. Here callFake comes...
...something like BrandonText-Regular and BrandonText-Bold. (With flawed Meta-information) You have a HTML string to be rendered by PDFKit For demonstration purposes, this string also contains CSS styles...
Rails' fragment caching caches subtrees of an HTML document tree. While constructing that tree though, it can be really hard to keep track of whether some code is run in...
...a browser, your choice is to use either Flash or the new tag in HTML5. Each method has issues, but depending on your requirements you might not care about all...
Cannot reliably seek to a given position when playing VBR-encoded MP3s. HTML5 audio Is the future, but not quite here yet. Allows you to play audio with...
...fertigen Text mit den eigenen Daten aus, zusätzlich erhält man den Text auch noch im HTML-Format, den man sich am besten in einer Zwischenablage speichern sollte. #2. Impressum einfügen...
...sich eine "Static-HTML-App" installieren, mit der man Texte und Bilder (mit Hilfe einfacher HTML-Befehle) als eigene Tabs darstellen kann. Die App "Static HTML: iframe tabs" (https://apps.facebook.com...
...image editing before rendering the favicons, in all needed sizes, formats and with the HTML needed to include them! In Rails applications with Haml: put all the favicon files into...
store the HTML to app/views/layouts/_favicon.html add = render 'layouts/favicon' to in your application layout(s) ... and you're all set...
...I18n scope for humanized attribute names, same translations for ActiveRecord and ActiveModel, fallback locales, HTML in locales, making browsers wrap long words 📄 Managing Rails locale files with i18n-tasks — our...
# Generate paths and URLs > app.project_path(Project.last) => "/projects/34" # Make requests > app.get '/projects/34' => 200 > app.response.body => " ..." # Use helpers helper.truncate("Foobar", length: 5...
...erb template doesn't allow you to indent code like you normally do in HTML mails. ❌ DON'T <%= 'foo' if bar %> "\n" if bar is false "foo\n" if bar...
...as much JavaScript as possible with built-in Unpoly features: E.g. code that loads HTML with AJAX and replaces a page fragment can be replaced with a[up-target].
...code base will grow a collection of different file types including: Ruby (business logic) HTML fragments (layouts and views) CSS/Sass/SCSS (styles) JavaScript (client-side behavior) Static media (images, fonts, videos...
...There is also -webkit-line-clamp which works only on Chrome. Example Consider this HTML and Sass for a box that is not wide enough for its content: Hello universe...
Einschub: Was ist XSS? XSS = Cross Site Scripting. Passiert wenn ein User ungefiltertes HTML in die Webseite einfügen kann. Danke für den interessanten Beitrag! alert('you have been hacked') Rails löst das Problem weitgehend...
...the pros and cons of each approach with your mentor. Resources ========= Images done right HTML Standard A collection of 300.000+ SVG Vectors and Icons MDN: Responsive Images img srcset und...
The robots.txt file and HTML tag can be used to control the behavior of search engine crawlers. Both have different effects. robots.txt Marking a URL path as "disallowed" in robots.txt...