Electric and electronics
Electric and electronics refer to two closely related fields that deal with the study, design, and application of electrical systems and el...
This is the default view (desktop version).
RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
For Nginx:
server { listen 80; server_name www.easy2post2.blogspot.com; return 301 http://easy2post2.blogspot.com$request_uri; }// Function to check for preload links function checkPreloadLinks() { const preloadLinks = document.querySelectorAll('link[rel="preload"]'); const resourceTypes = ['script', 'style', 'font', 'image']; if (preloadLinks.length === 0) { console.warn("No preload links found!"); return; } console.log("Preload links found:"); preloadLinks.forEach(link => { console.log(`- ${link.href} (as: ${link.getAttribute('as')})`); }); // Suggest resources that can be preloaded const suggestions = []; resourceTypes.forEach(type => { const resources = document.querySelectorAll(`${type}`); resources.forEach(resource => { if (!Array.from(preloadLinks).some(link => link.href === resource.src || link.href === resource.href)) { suggestions.push(resource.src || resource.href); } }); }); if (suggestions.length > 0) { console.warn("Consider preloading the following resources:"); suggestions.forEach(suggestion => console.warn(`- ${suggestion}`)); } else { console.log("All relevant resources are already preloaded."); } } // Execute the function checkPreloadLinks(); (function() { // Function to log key requests and suggest preloading function preloadKeyRequestsTest() { const preloadLinks = document.querySelectorAll('link[rel="preload"]'); const networkResources = performance.getEntriesByType("resource"); // Check for existing preload links if (preloadLinks.length === 0) { console.warn("No preload links found on this page."); } else { console.log("Existing preload links:"); preloadLinks.forEach(link => { console.log(`Loaded: ${link.href} (as: ${link.getAttribute('as')})`); }); } // Identify key resources that should be preloaded let keyResourcesToPreload = []; networkResources.forEach(resource => { // Check if it is an important resource (scripts, styles, images) and not already preloaded const isImportantType = ['script', 'style', 'font', 'image'].includes(resource.initiatorType); const isPreloaded = Array.from(preloadLinks).some(link => link.href === resource.name); // Log important resources requested later in load if (isImportantType and !isPreloaded and resource.startTime > 0 and resource.duration > 0) { keyResourcesToPreload.push(resource.name); } }); // Suggest resources to preload if (keyResourcesToPreload.length > 0) { console.warn("Consider adding preload for the following key requests:"); keyResourcesToPreload.forEach(res => console.warn(`- ${res}`)); } else { console.log("All key resources are already preloaded or there are no additional resources to preload."); } } // Execute the test after the window loads window.addEventListener('load', preloadKeyRequestsTest); })(); (async function checkHttp2() { const url = window.location.href; // Current page URL try { const response = await fetch(url, { method: 'HEAD' }); // Check the response protocol const httpVersion = response.url.startsWith("https") ? "HTTP/2" : "Not using HTTP/2"; if (response.headers.has('Alt-Svc')) { console.log(`The webpage is using HTTP/2 protocol. HTTP Version: ${httpVersion}`); } else { console.warn(`This webpage is not using the HTTP/2 protocol.`); } } catch (error) { console.error("An error occurred while checking HTTP version:", error); } })();