Everything posted by Nillervision
-
Cache issue i Chrome
Thanks for the reply @BlueDreamer and @davep The page updated fine in other browsers Incognito (in chrome) didn't make any difference. The only way I could force chrome to reload the page was by entering the filename in the url. But the changes didn't persist when I went back to the folder url However after a few days the problem seems to have solved it self. I do have mod_expires set in my .htaccess, which might have contributed to Chromes behaviour. But anoying anyway.
-
Cache issue i Chrome
Hello everyone. It's been a while. I have a problem and I hope someone can help. I have a HTML file in a folder on a domain like this: domain.dk/folder/index.html (Its the ONLY file in the folder) The problem is I cant clear chomes cached version of the page, if I omit the filename in the url like this domain.dk/folder/ I have tried: F5 Ctrl + F5 Ctrl + r Ctrl+ shift + r Opened the inspector, and right-clicked the refresh button to clear cache and hard reload. Logged out of chrome Cleared cache in the inspectors application tab Cleared Local Storage, and Cookies for the domain. No problem if the index.html is in the url, but without, it seems impossible to update the page. Any ideas?
-
Pleasehelp settle argument on front page banner
What comes to mind first is that the content in both banners isn't suitable. Usually a special designed banner is not an element that gets updated regularly The first one says "New" - Is the product still new a year from now? The other one says "10% off" - Is this product still on sale 6 months from now, or what if the company can't sell the product, then the circle has to contain the following text. "15% off and 50 free opera festival tickets" or something similar A designer should always advice clients about the best use of graphic elements and the best use of banner elements are for emotional statements. Use the banner to catch the users interest, promote the message and the "dream" rather than the product. Discounts and news should be shown in elements that can easily be updated by client with out having to hire designers.
-
Responsive Menu
Have you added a viewport meta tag? If not a phone will normaly just scale down the 'desktop version' of the page.
-
Lazy Loading images and video
Though this is an example of succesfull indexing. I still have my concerns, Google bots can execute scripts and decide to evaluate user experiences on in various viewport sizes, but the bot still doesnt have a viewport. I suppose a reference to an image in a data attribute might result in indexing at some point, but hardly good SEO practice. It's not just the transfer of bytes that slows a page down, the number of requests is also a reason to lazy load
- Lazy Loading images and video
-
Copy of website to test server not displaying correctly!
Most likely because of absolute paths to the stylesheets etc. Open chromes developer tools and check for missing resources under the network tab.
- 14 replies
-
- javascript
- php
- display
- copying
-
Tagged with:
- Lazy Loading images and video
-
Edit a website
You will need access to the server for this. If the site is created using .NET there probably will not be any html files for you to edit. The files that generates the markup will be asp or aspx files. If you really own the site you should be able to access the server. Then You could use a text editor and try to search and replace for the menu title in any asp/aspx files, but it is most likely that the whole menu is generated by a function/class file which has been compiled to byte code when saved. The original code behind files might be on the server, in which case you can open them in Microsoft Visual Studio and edit/recompile them. But you will need server access for this. These files can not be downloaded through normal http access. EDIT: You could of cause also download a a static copy of rhe generated HTML and edit it a wysiwig editor like dreamweaver. But you will lose any functionality that runs on the server.
-
Cakewalk by BandLab - New Free DAW for Windows
Thanks for sharing. Ive been a Logic user for over 15 years. But Cakewalk is absolutely a great platform.
-
Looking for constructive criticism/feedback
Though these are all valid arguments for using a CMS it is not certain its the best solution for OP. Static HTML/PHP files loads faster than CMS pages because there are no database queries. With a little PHP knowledge you can include a header, menu, footer etc. on a 'static' page as well instead of copy/paste. Wordpress and most other CM systems performs database queries based on parameters in the url. This makes the site much more vonurable to attacks than a static site. The query parameters can also give a beginner problems with duplicate content/multiple urls. The same goes for different post types. All in all a CMS is very powerfull but it takes a lot of experience to set it up the right way. For someone with HTML skills, but no knowledge of backend development, static are often a better solution.
-
Slide Show?
You can build it yourself very easily. A slider like that doesnt even require javascript. I've made a tutorial showing how to do it with pure CSS animations: DEMO AND SOURCE DOWNLOAD: http://nielsharbo.dk/?lang=en&page=tutorials&post=css-slider
-
Too Old?
Its not to late. I started to develop webpages in the late 30s. When I was 40, I went to uni to take degrees in design and webdevelopment. Now I am almost 50 and employed as a frontend lead developer at an agency. If you have a pasion and interest for the trade, it is never to late to start Keep in mind that it will take a long time to build experience and skills enough to earn a good pay in this business. And you will have to keep educating yourself to stay up to date with the latest tech, development models, design trends etc.
-
Valuable Feedback
Hello Neik. Welcome to the forum. If you want to build credibility as a theme developer you should really be working on optimizing your own site, https://developers.google.com/speed/pagespeed/insights/?hl=en&url=https%3A%2F%2Fwww.themevault.net%2F&tab=desktop A PageSpeed Insights score of 30 is really not good enough Suggestions for better UX. Use a honeypot instead of captcha in your contact form Get rid of the slidetoggle on the FAQ page, unless you plan to have longer answers. Why bother the user with having to click to reveal just one or two lines of text The automatic pop up will most likely just annoy users. Nobody will react to it before having a chance to read your offers. And google might punish you for it; https://www.theverge.com/2016/8/23/12610890/google-search-punish-pop-ups-interstitial-ads Most importantly: I think you need to work a lot on your brand and credibility. Let the user know who you are. Your site has zero information about you: no images of you or your team no about-us page no info about your location, your pasion for design or your values, mission, vision etc. no testimonials from happy clients.
-
Jquery viewport trigger
This method returns true if the current element is in the viewport jQuery.fn.isInViewport = function() { var elementTop = jQuery(this).offset().top; var elementBottom = elementTop + jQuery(this).outerHeight(); var viewportTop = jQuery(window).scrollTop(); var viewportBottom = viewportTop + jQuery(window).height(); return elementBottom > viewportTop && elementTop < viewportBottom; }; Usage: if (jQuery('.my-element').isInViewport()) { //do something } DEMO: https://jsfiddle.net/Nillervision/fmgjbkps/ Note that this example is not listening for scroll events (which can be heavy for the browser) Instead the function is running on each animation frame: I'm not 100% sure but I think this give you a better performance because each frame is parsed by the browsers js engine anyway, and the interval between the frame "events" is determined by the device itself: var scroll = window.requestAnimationFrame; function loop() { if (jQuery('.my-element').isInViewport()) { //do something } // Recall the loop scroll(loop) } // Call the loop for the first time loop(); To support old browsers you can fallback to vendor prefixes or even a timer var scroll = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || // fallback to timer function(callback) { window.setTimeout(callback, 1000 / 60) };
-
WooCommerce Size etc. Dropdown option
This functionality is build into woocommerce it is called variable products. https://docs.woocommerce.com/document/variable-product/
-
XML SiteMap - Duplicate URL issue
I'm sure this is only an issue because you have some links containing the query string somewhere on your site. Probably because of a quick copy/paste action, check the urls in your menus and inline links in your posts.
-
What is the correct order of a site design
Take a look at this test. Test Five: Background Image Where Desktop Image Set with Min-Width https://timkadlec.com/2012/04/media-query-asset-downloading-results/ Edit: I also found this: Source: https://www.mightyminnow.com/2013/11/what-is-mobile-first-css-and-why-does-it-rock/
-
What is the correct order of a site design
OK. Let me explain how I've reached this conclusion. Mobil first is a progressive enhancement model (at least from what I read everywhere). That means that our core product is designed to support the devices with the most limited features (in this case screen size/resolution) After we have provided our initial styles we gradually check if the device supports larger resolutions and if so we enhance the initial features (Alows the content to float in to columns etc.) If we were structuring our CSS in a way were the core styles (initial rules) would apply to larger screens and gracefully degrade to smaller screens, we would no longer be designing after a progressive enhancement model.
-
XML SiteMap - Duplicate URL issue
Could be that the sitemap generator is indexing search results. ?s= is the url key that WP uses for search queries. If you are worried that search engines will make the same "mistake" as the sitemap generator you could take one of these precautions: Note: First of all go through the internal links on your site and make sure you dont have any links with the search query string in it. METHOD 1 In your robots.txt file add this line to prevent indexing of any search queries Disallow: /*?s METHOD 2 In your documents head element (probably located in header.php) you can use a Wordpress function to check if the page is the search result page (which can have endless amounts of URLs) and add a robots meta tag. <?php if ( is_search() ) { echo '<meta name="robots" content="noindex">'; } ?> Or use the Youst settings to do it manually on each page. (you can also manually set a canonical url) https://kb.yoast.com/kb/canonical-urls-in-wordpress-seo/ METHOD 3 Submit a sitemap to Google, Bing and other search engines with only the URLs you want indexed
-
What is the correct order of a site design
Not entirely. The mobile first approach also has to do with the structure of your CSS. All your your initial CSS (outside any media queries) would be the only CSS loaded on the smallest screens. Overrides to these initial styles would be placed in min-width media queries and would ONLY be loaded on larger screens which often goes hand in hand with faster connections. When using the desktop first approach the initial CSS rules would be for the largest screens possible. Devices with small screens would have to read all this CSS code only to have it overridden later by styles defined in max-width media queries.
-
Looking for constructive criticism/feedback
First of all thanks for making good use of my pure CSS slider @GrahamUK33 If you want I can place a HQ link on the tutorial page so people can see an example on a live production. Back on topic: When in doubt. I think it is always good to give the user a choice. Some users like scrolling, other users might prefer other options. To accommodate for this you could place a bar at the top of the timeline with either inputs for filtering or simple links, like @fisicx suggested. Here's an example fiddle: https://jsfiddle.net/Nillervision/9z3sqm1o/
-
What is the best software to create a 3D configurator?
With "rendering" do you mean the browsers WebGL API? If so remember that everything in your 3D scene has to be compiled to JavaScript and transferred to the client over http and interpreted and rendered in a browser (which BTW was never designed for 3D calculations). With that in mind WebGL is pretty amazing. No matter what software you use to publish your 3D models on the web, you will see performance problems and slow load times if your scenes are to complex. Also, you never know the users specs (graphic card, CPU etc.) so it's really important to optimize your scenes as much as possible. A few tips for optimization: Bake details into a normal map and use the decimate modifier to reduce the polycount afterwards. Limit the number of light sources to a minimum and bake ambient occlusion and shadows into your textures rather than having them calculated in real time. Compress your bitmap textures as much as posible, and try to fit your textures to square images (256x256, 512x512 and 1024x1024 with JPEG compression usually works well) If you have repeating/ similar objects in your scene, use instances (objects with the same mesh and material data) rather than unique copies EDIT: You might also consider at gzip compression. You can either enable that in your servers configuration (.htacces file) or for the individual 3D scene
-
Front end before or after backend?
Most people would probably think that developing the logic to store and fetch data first, and worry about the UI later would be the best approach. But on larger projects I think it's a often a good idea to involve a frontend dev, a backend dev and a designer and have them workout the solutions together from the start. That is the model we use on complex projects at my workplace. Here is some of the reasons why. Estimates A project manager needs estimates and you can't really ask a backend dev what a logo design, or an animation will cost. Visualizing concepts The designer is usually better to communicate with the client/external shareholders because he/she can visualize the concepts with wireframes, mockups or moodboards. It is always important to have the concepts visualized, defined and agreed on before any coding starts, so that the developers don't have to rewrite large amounts of code later in the process. Better code/markup You can have the front end dev working on the UI and template/view files as soon as the visual concepts are approved by the client. The frontend dev can start by inserting dummy content in hardcoded html or even code functions that returns dummy content (if he/she knows a bit of backend). This can be a big help for the backend dev because, even though the functions would have to be rewritten, the backend dev would have a clear idea about what markup the frontender expects in the returned data. Better solutions Many problems have solutions that can be solved in both the backend and frontend domains. How do you find the best solution if your devs do not work together from the start? Say your backend dev have coded a function that fetches data via a slow external API. But the interface also have a filter function. Lets say a simple show-only-new-content-button. Instead of having the backend dev post back an argument to the function and perform a new slow API call, maybe the frontender could just code a JavaScript function that simply hides the older content when the button is clicked.
-
Not a wordpress site
A CMS will often be more vulnerable than PHP/HTML pages with hardcoded static content. If the CMS (or installed plugins) is poorly written, hackers can inject msql queries in form inputs or the address bar. However a site that does not use a database connection can also be hacked because the hacker can inject scripts with file operations and delete/alter your files. But if you write-protect your files, sanitize all your textinputs, and url queries, and you make sure that all your included class/funtion files have the .php extension (so no one can download them and see your code) you are making it extremely difficult to hack the site. EDIT: If your site uses a database the best way to secure it is to use prepared statements: http://php.net/manual/en/pdo.prepared-statements.php